Complete Poll list with booth assigment management links

This commit is contained in:
Bertocq
2017-10-19 19:42:00 +02:00
parent 45d91a7e50
commit c52c0a5452
3 changed files with 19 additions and 1 deletions

View File

@@ -8,7 +8,21 @@
<th class="text-right"><%= t("admin.actions.actions") %></th>
</thead>
<tbody>
<%= render @polls %>
<% @polls.each do |poll| %>
<tr id="<%= dom_id(poll) %>" class="poll">
<td>
<strong><%= poll.name %></strong>
</td>
<td>
<%= l poll.starts_at.to_date %> - <%= l poll.ends_at.to_date %>
</td>
<td class="text-right">
<%= link_to t("admin.booth_assignments.manage_assignments"),
manage_admin_poll_booth_assignments_path(poll),
class: "button hollow" %>
</td>
</tr>
<% end %>
</tbody>
</table>
<% else %>

View File

@@ -525,6 +525,8 @@ en:
date_missing: "A date must be selected"
vote_collection: Collect Votes
recount_scrutiny: Recount & Scrutiny
booth_assignments:
manage_assignments: Manage assignments
poll_booth_assignments:
flash:
destroy: "Booth not assigned anymore"

View File

@@ -525,6 +525,8 @@ es:
date_missing: "Debe seleccionarse una fecha"
vote_collection: Recoger Votos
recount_scrutiny: Recuento & Escrutinio
booth_assignments:
manage_assignments: Gestionar asignaciones
poll_booth_assignments:
flash:
destroy: "Urna desasignada"