+
+ <%= f.text_field :starts_at,
+ value: @poll.starts_at.present? ? l(@poll.starts_at.to_date) : nil,
+ class: "js-calendar-full" %>
+
-
- <%= f.text_field :ends_at,
- value: @poll.ends_at.present? ? l(@poll.ends_at.to_date) : nil,
- class: "js-calendar-full" %>
+
+ <%= f.text_field :ends_at,
+ value: @poll.ends_at.present? ? l(@poll.ends_at.to_date) : nil,
+ class: "js-calendar-full" %>
+
+ <%= f.translatable_fields do |translations_form| %>
+
+ <%= translations_form.text_field :name %>
+
- <%= f.translatable_fields do |translations_form| %>
-
- <%= translations_form.text_field :name %>
-
+
+ <%= translations_form.text_area :summary, rows: 4 %>
+
-
- <%= translations_form.text_area :summary, rows: 4 %>
-
-
-
- <%= translations_form.text_area :description, rows: 8 %>
-
- <% end %>
-
-
- <%= render "images/admin_image", imageable: @poll, f: f %>
+
+ <%= translations_form.text_area :description, rows: 8 %>
+
+ <% end %>
-
-
- <%= f.check_box :geozone_restricted, data: { checkbox_toggle: "#geozones" } %>
+
+
+ <%= render "images/admin_image", imageable: @poll, f: f %>
+
+
+
+
+ <%= f.check_box :geozone_restricted, data: { checkbox_toggle: "#geozones" } %>
+
@@ -54,10 +59,13 @@
-
-
- <%= f.submit t("admin.polls.#{admin_submit_action(@poll)}.submit_button"),
- class: "button success expanded margin-top" %>
+
+
+
+ <%= f.submit t("admin.polls.#{admin_submit_action(@poll)}.submit_button"),
+ class: "button success expanded margin-top" %>
+
+
<% end %>