45 lines
1.2 KiB
Text
45 lines
1.2 KiB
Text
<div class="mb-5">
|
|
<h1><%= @vote.title %></h1>
|
|
<ul class="list-unstyled">
|
|
<li>
|
|
<span class="badge bg-secondary"><%= _("Draft") %></span>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="alert alert-warning mb-5">
|
|
|
|
<p><strong><%= _("Closing date: %{date}") % { date: format_date_and_time(@expire_on) } %></strong></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" class="mb-3">
|
|
<button type="submit" class="btn btn-primary"><%= _("Open vote to participants") %></button>
|
|
</form>
|
|
|
|
<form action="/votes/<%= @vote.secure_id %>" method="get">
|
|
<button type="submit" class="btn btn-outline-secondary"><%= _("Cancel") %></button>
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="mb-5">
|
|
<div class="lead">
|
|
<%= markdown(@vote.description) %>
|
|
</div>
|
|
</div>
|
|
|
|
<h2 class="mb-4"><%= _("Candidates") %></h2>
|
|
|
|
<% @vote.candidates.each do |candidate| %>
|
|
<div class="card mb-4">
|
|
<div class="card-body">
|
|
<h3 class="mb-3"><%= candidate.name %></h3>
|
|
<%= markdown(candidate.description) %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|