fixes booth search in admin
This commit is contained in:
@@ -25,16 +25,10 @@
|
||||
<%= booth.location %>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<% if @poll.booth_ids.include?(booth.id) %>
|
||||
<%= link_to t("admin.poll_booth_assignments.index.remove_booth"),
|
||||
method: :delete,
|
||||
class: "button hollow alert" %>
|
||||
<% else %>
|
||||
<%= link_to t("admin.poll_booth_assignments.index.add_booth"),
|
||||
admin_poll_booth_assignments_path(poll: @poll, booth: booth),
|
||||
method: :post,
|
||||
class: "button hollow" %>
|
||||
<% end %>
|
||||
<%= 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" %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user