Assign/Unassign button for expired polls is disabled
This commit is contained in:
@@ -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 %>
|
||||
|
||||
Reference in New Issue
Block a user