Files
grecia/app/views/officing/voters/_can_vote.html.erb

19 lines
778 B
Plaintext

<div class="row">
<div class="small-12 medium-6 large-4 column">
<div class="callout success text-center">
<strong><%= t("officing.voters.show.can_vote") %></strong>
</div>
</div>
<div class="small-12 medium-6 large-4 column end">
<%= form_for @user, as: :voter, url: officing_voters_path,
method: :post, remote: true,
html: { id: "new_officing_voter" } do |f| %>
<%= f.hidden_field :poll_id, value: poll.id %>
<%= f.hidden_field :user_id, value: @user.id %>
<%= f.submit t("officing.voters.show.submit"),
class: "button success expanded",
data: { disable_with: t("officing.voters.can_vote.submit_disable_with") } %>
<% end %>
</div>
</div>