Remove assign/unassign booth to poll from poll booth assigments list
This commit is contained in:
@@ -12,7 +12,6 @@
|
||||
<tr>
|
||||
<th><%= t("admin.poll_booth_assignments.index.table_name") %></th>
|
||||
<th><%= t("admin.poll_booth_assignments.index.table_location") %></th>
|
||||
<th class="text-center"><%= t("admin.poll_booth_assignments.index.table_assignment") %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -24,14 +23,6 @@
|
||||
<td>
|
||||
<%= booth.location %>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<% unless @poll.booth_ids.include?(booth.id) %>
|
||||
<%= link_to t("admin.poll_booth_assignments.index.add_booth"),
|
||||
admin_poll_booth_assignments_path(@poll, booth_id: booth.id),
|
||||
method: :post,
|
||||
class: "button hollow" %>
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
<thead>
|
||||
<th><%= t("admin.poll_booth_assignments.index.table_name") %></th>
|
||||
<th><%= t("admin.poll_booth_assignments.index.table_location") %></th>
|
||||
<th class="text-right"><%= t("admin.poll_booth_assignments.index.table_assignment") %></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @booth_assignments.each do |booth_assignment| %>
|
||||
@@ -27,12 +26,6 @@
|
||||
<td>
|
||||
<%= booth_assignment.booth.location %>
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<%= link_to t("admin.poll_booth_assignments.index.remove_booth"),
|
||||
admin_poll_booth_assignment_path(@poll, booth_assignment),
|
||||
method: :delete,
|
||||
class: "button hollow alert" %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
|
||||
@@ -559,8 +559,6 @@ en:
|
||||
no_booths: "There are no booths assigned to this poll."
|
||||
table_name: "Name"
|
||||
table_location: "Location"
|
||||
table_assignment: "Assignment"
|
||||
remove_booth: "Remove booth from poll"
|
||||
add_booth: "Assign booth"
|
||||
polls:
|
||||
index:
|
||||
|
||||
@@ -559,8 +559,6 @@ es:
|
||||
no_booths: "No hay urnas asignadas a esta votación."
|
||||
table_name: "Nombre"
|
||||
table_location: "Ubicación"
|
||||
table_assignment: "Asignación"
|
||||
remove_booth: "Desasignar urna"
|
||||
add_booth: "Asignar urna"
|
||||
polls:
|
||||
index:
|
||||
|
||||
Reference in New Issue
Block a user