28 lines
818 B
Text
28 lines
818 B
Text
<h1><%= _("Open vote") %></h1>
|
|
|
|
<p><%= _("Closing date: %{date}") % { date: format_date_and_time(@expire_on) } %></p>
|
|
|
|
<p><%= _("The vote will automatically close on that date and the results will
|
|
be sent to all users by email.") %></p>
|
|
|
|
<p><%= _("You won't be able to modify or delete this vote anymore after
|
|
opening it.") %></p>
|
|
|
|
<form action="/votes/<%= @vote.secure_id %>/open" method="post">
|
|
<button type="submit"><%= _("Open vote to participants") %></button>
|
|
</form>
|
|
|
|
<form action="/votes/<%= @vote.secure_id %>" method="get">
|
|
<button type="submit"><%= _("Cancel") %></button>
|
|
</form>
|
|
|
|
<h2><%= @vote.title %></h2>
|
|
|
|
<%= markdown(@vote.description) %>
|
|
|
|
<h2><%= _("Candidates") %></h2>
|
|
|
|
<% @vote.candidates.each do |candidate| %>
|
|
<h3><%= candidate.name %></h3>
|
|
<%= markdown(candidate.description) %>
|
|
<% end %>
|