Moves geozones from questions to polls in admin show views
This commit is contained in:
@@ -6,9 +6,15 @@
|
|||||||
<%= @poll.name %>
|
<%= @poll.name %>
|
||||||
</h2>
|
</h2>
|
||||||
<br>
|
<br>
|
||||||
<p class="inline-block">
|
<span>
|
||||||
(<%= l @poll.starts_at.to_date %> - <%= l @poll.ends_at.to_date %>)
|
(<%= l @poll.starts_at.to_date %> - <%= l @poll.ends_at.to_date %>)
|
||||||
</p>
|
</span>
|
||||||
|
<% if @poll.geozone_restricted %>
|
||||||
|
<span class="bullet"> • </span>
|
||||||
|
<span>
|
||||||
|
<%= @poll.geozones.pluck(:name).to_sentence %>
|
||||||
|
<span>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<div id="poll-resources" class="tabs-content" data-tabs-content="assigned-resources-tabs">
|
<div id="poll-resources" class="tabs-content" data-tabs-content="assigned-resources-tabs">
|
||||||
<%= render "filter_subnav" %>
|
<%= render "filter_subnav" %>
|
||||||
@@ -27,4 +33,4 @@
|
|||||||
<%= render "search_officers" %>
|
<%= render "search_officers" %>
|
||||||
<%= render 'officers' %>
|
<%= render 'officers' %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -46,15 +46,6 @@
|
|||||||
<%= @question.description %>
|
<%= @question.description %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
|
||||||
<strong><%= t("admin.questions.show.geozones") %></strong>
|
|
||||||
<br>
|
|
||||||
<% @question.geozones.each do |geozone| %>
|
|
||||||
<span class="geozone">
|
|
||||||
<%= geozone.name %>
|
|
||||||
</span>
|
|
||||||
<% end %>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<%= link_to t("admin.questions.show.preview"), question_path(@question) %>
|
<%= link_to t("admin.questions.show.preview"), question_path(@question) %>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user