From b854d992484e196e724db33b3547616ea8682a69 Mon Sep 17 00:00:00 2001 From: iagirre Date: Fri, 27 Oct 2017 13:10:10 +0200 Subject: [PATCH] Assign/Unassign button for expired polls is disabled --- .../admin/poll/booth_assignments/_booth_assignment.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/admin/poll/booth_assignments/_booth_assignment.html.erb b/app/views/admin/poll/booth_assignments/_booth_assignment.html.erb index d78f7be8b..8fb944e9c 100644 --- a/app/views/admin/poll/booth_assignments/_booth_assignment.html.erb +++ b/app/views/admin/poll/booth_assignments/_booth_assignment.html.erb @@ -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' : ''}" %> <% else %> @@ -26,6 +26,6 @@ method: :post, remote: true, title: t("admin.booth_assignments.manage.actions.assign"), - class: "button" %> + class: "button #{@poll.expired? ? 'disabled' : ''}" %> <% end %>