Adding, modifiying, and/or deleting questions for an already started poll is far away from being democratic and can lead to unwanted side effects like missing votes in the results or stats. So, from now on, only modifiying questions will be possible only if the poll has not started yet.
30 lines
746 B
Plaintext
30 lines
746 B
Plaintext
<%= link_to t("admin.polls.edit.title"),
|
|
edit_admin_poll_path(@poll),
|
|
class: "button hollow float-right" %>
|
|
|
|
<h2 class="inline-block">
|
|
<%= @poll.name %>
|
|
</h2>
|
|
|
|
<div class="clear"></div>
|
|
|
|
<div class="callout highlight">
|
|
<div class="inline-block">
|
|
<strong><%= t("admin.polls.index.dates") %></strong>
|
|
<br>
|
|
<%= render Admin::DurationComponent.new(@poll) %>
|
|
</div>
|
|
|
|
<% if @poll.geozone_restricted %>
|
|
<div class="inline-block margin-left">
|
|
<strong><%= t("admin.polls.index.geozone_restricted") %></strong>
|
|
<br>
|
|
<%= @poll.geozones.pluck(:name).to_sentence %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
|
|
<div class="callout warning">
|
|
<strong><%= t("admin.questions.no_edit") %></strong>
|
|
</div>
|