shows add booth link only for not assigned booths
This commit is contained in:
@@ -25,10 +25,12 @@
|
|||||||
<%= booth.location %>
|
<%= booth.location %>
|
||||||
</td>
|
</td>
|
||||||
<td class="text-center">
|
<td class="text-center">
|
||||||
<%= link_to t("admin.poll_booth_assignments.index.add_booth"),
|
<% unless @poll.booth_ids.include?(booth.id) %>
|
||||||
admin_poll_booth_assignments_path(@poll, booth_id: booth.id),
|
<%= link_to t("admin.poll_booth_assignments.index.add_booth"),
|
||||||
method: :post,
|
admin_poll_booth_assignments_path(@poll, booth_id: booth.id),
|
||||||
class: "button hollow" %>
|
method: :post,
|
||||||
|
class: "button hollow" %>
|
||||||
|
<% end %>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
Reference in New Issue
Block a user