Assign/Unassign button for expired polls is disabled

This commit is contained in:
iagirre
2017-10-27 13:10:10 +02:00
parent 6b55518f4c
commit b854d99248

View File

@@ -14,7 +14,7 @@
method: :delete,
remote: true,
title: t("admin.booth_assignments.manage.actions.unassign"),
class: "button hollow alert" %>
class: "button hollow alert #{@poll.expired? ? 'disabled' : ''}" %>
</td>
<% else %>
<td>
@@ -26,6 +26,6 @@
method: :post,
remote: true,
title: t("admin.booth_assignments.manage.actions.assign"),
class: "button" %>
class: "button #{@poll.expired? ? 'disabled' : ''}" %>
</td>
<% end %>