diff --git a/app/views/admin/poll/booth_assignments/_search_booths.html.erb b/app/views/admin/poll/booth_assignments/_search_booths.html.erb index e96e334c7..b8f5d7c80 100644 --- a/app/views/admin/poll/booth_assignments/_search_booths.html.erb +++ b/app/views/admin/poll/booth_assignments/_search_booths.html.erb @@ -1,16 +1,14 @@ -
-
- <%= form_tag(search_booths_admin_poll_booth_assignments_path(@poll), method: :get, remote: true) do |f| %> -
- <%= text_field_tag :search, - @search, - placeholder: t("admin.shared.booths_search.placeholder"), id: "search-booths" %> -
- <%= submit_tag t("admin.shared.booths_search.button"), class: "button" %> -
+
+ <%= form_tag(search_booths_admin_poll_booth_assignments_path(@poll), method: :get, remote: true) do |f| %> +
+ <%= text_field_tag :search, + @search, + placeholder: t("admin.shared.booths_search.placeholder"), id: "search-booths" %> +
+ <%= submit_tag t("admin.shared.booths_search.button"), class: "button" %>
- <% end %> -
+
+ <% end %>
diff --git a/app/views/admin/poll/booth_assignments/index.html.erb b/app/views/admin/poll/booth_assignments/index.html.erb index 75cbe889f..9e99e3179 100644 --- a/app/views/admin/poll/booth_assignments/index.html.erb +++ b/app/views/admin/poll/booth_assignments/index.html.erb @@ -4,7 +4,7 @@ <%= render "/admin/poll/polls/subnav" %> <%= render "search_booths" %> -

<%= t("admin.poll_booth_assignments.index.booths_title") %>

+

<%= t("admin.poll_booth_assignments.index.booths_title") %>

<%= link_to t("admin.booth_assignments.manage_assignments"), manage_admin_poll_booth_assignments_path(@poll), diff --git a/app/views/admin/poll/officer_assignments/_search_officers.html.erb b/app/views/admin/poll/officer_assignments/_search_officers.html.erb index 7ed39f10d..2e994fe8a 100644 --- a/app/views/admin/poll/officer_assignments/_search_officers.html.erb +++ b/app/views/admin/poll/officer_assignments/_search_officers.html.erb @@ -1,16 +1,14 @@ -
-
- <%= form_tag(search_officers_admin_poll_officer_assignments_path(@poll), method: :get, remote: true) do |f| %> -
- <%= text_field_tag :search, - @search, - placeholder: t("admin.shared.poll_officers_search.placeholder"), id: "search-officers" %> -
- <%= submit_tag t("admin.shared.poll_officers_search.button"), class: "button" %> -
+
+ <%= form_tag(search_officers_admin_poll_officer_assignments_path(@poll), method: :get, remote: true) do |f| %> +
+ <%= text_field_tag :search, + @search, + placeholder: t("admin.shared.poll_officers_search.placeholder"), id: "search-officers" %> +
+ <%= submit_tag t("admin.shared.poll_officers_search.button"), class: "button" %>
- <% end %> -
+
+ <% end %>
diff --git a/app/views/admin/poll/polls/_form.html.erb b/app/views/admin/poll/polls/_form.html.erb index 1a45b8097..8a91d614a 100644 --- a/app/views/admin/poll/polls/_form.html.erb +++ b/app/views/admin/poll/polls/_form.html.erb @@ -1,11 +1,9 @@ <%= form_for [:admin, @poll] do |f| %> -
-
- <%= f.text_field :name %> -
+
+ <%= f.text_field :name %>
-
+
<%= f.text_field :starts_at, value: @poll.starts_at.present? ? l(@poll.starts_at.to_date) : nil, @@ -19,25 +17,19 @@
-
-
- <%=f.text_area :summary, rows: 4%> -
+
+ <%=f.text_area :summary, rows: 4%>
-
-
- <%=f.text_area :description, rows: 8%> -
+
+ <%=f.text_area :description, rows: 8%>
-
-
- <%= render 'images/admin_image', imageable: @poll, f: f %> -
+
+ <%= render 'images/admin_image', imageable: @poll, f: f %>
-
+
<%= f.check_box :geozone_restricted, data: { checkbox_toggle: "#geozones" } %>
@@ -55,10 +47,10 @@
-
-
+
+
<%= f.submit t("admin.polls.#{admin_submit_action(@poll)}.submit_button"), - class: "button success expanded" %> + class: "button success expanded margin-top" %>
<% end %> diff --git a/app/views/admin/poll/polls/_poll.html.erb b/app/views/admin/poll/polls/_poll.html.erb index 5ec63b6b5..712a411bd 100644 --- a/app/views/admin/poll/polls/_poll.html.erb +++ b/app/views/admin/poll/polls/_poll.html.erb @@ -8,11 +8,15 @@ <%= l poll.starts_at.to_date %> - <%= l poll.ends_at.to_date %> +
<%= link_to t("admin.actions.edit"), edit_admin_poll_path(poll), - class: "button hollow" %> + class: "button hollow expanded" %> +
+
<%= link_to t("admin.actions.configure"), admin_poll_path(poll), - class: "button hollow" %> + class: "button hollow expanded" %> +
diff --git a/app/views/admin/poll/polls/_questions.html.erb b/app/views/admin/poll/polls/_questions.html.erb index fb92a4e43..f1dd818e8 100644 --- a/app/views/admin/poll/polls/_questions.html.erb +++ b/app/views/admin/poll/polls/_questions.html.erb @@ -2,13 +2,13 @@ <% if @poll.questions.empty? %>
- <%= t('admin.polls.show.no_questions') %> + <%= t("admin.polls.show.no_questions") %>
<% else %> - + <% @poll.questions.each do |question| %> diff --git a/app/views/admin/poll/polls/index.html.erb b/app/views/admin/poll/polls/index.html.erb index 487f0fa54..ece32decb 100644 --- a/app/views/admin/poll/polls/index.html.erb +++ b/app/views/admin/poll/polls/index.html.erb @@ -2,14 +2,14 @@ <%= link_to t("admin.polls.index.create"), new_admin_poll_path, - class: "button success float-right" %> + class: "button float-right" %> <% if @polls.any? %>
<%= t('admin.polls.show.table_title') %><%= t("admin.polls.show.table_title") %>
- + - + <%= render @polls %> diff --git a/app/views/admin/poll/polls/new.html.erb b/app/views/admin/poll/polls/new.html.erb index ac3ba5a4d..6cc6c0d8f 100644 --- a/app/views/admin/poll/polls/new.html.erb +++ b/app/views/admin/poll/polls/new.html.erb @@ -1,6 +1,8 @@ -<%= back_link_to %> +
+ <%= back_link_to %> -

<%= t("admin.polls.new.title") %>

+

<%= t("admin.polls.new.title") %>

+
<%= render "form" %> diff --git a/app/views/admin/poll/questions/_form.html.erb b/app/views/admin/poll/questions/_form.html.erb index eeb38a405..5ffdc6573 100644 --- a/app/views/admin/poll/questions/_form.html.erb +++ b/app/views/admin/poll/questions/_form.html.erb @@ -14,8 +14,8 @@ <%= f.text_field :title %> -
- <%= f.submit(class: "button expanded", value: t("shared.save")) %> +
+ <%= f.submit(class: "button success expanded", value: t("shared.save")) %>
diff --git a/app/views/admin/poll/questions/_questions.html.erb b/app/views/admin/poll/questions/_questions.html.erb index c142ad084..c108ad6a3 100644 --- a/app/views/admin/poll/questions/_questions.html.erb +++ b/app/views/admin/poll/questions/_questions.html.erb @@ -4,23 +4,27 @@ <% if @questions.count == 0 %>
- <%= t('admin.questions.index.no_questions') %> + <%= t("admin.questions.index.no_questions") %>
<% else %>
<%= t("admin.polls.index.name") %><%= t("admin.polls.index.name") %> <%= t("admin.polls.index.dates") %><%= t("admin.actions.actions") %><%= t("admin.actions.actions") %>
- - + + <% @questions.each do |question| %> - <% end %> diff --git a/app/views/admin/poll/questions/_successful_proposals.html.erb b/app/views/admin/poll/questions/_successful_proposals.html.erb index 2b192bccd..4f3fda4d5 100644 --- a/app/views/admin/poll/questions/_successful_proposals.html.erb +++ b/app/views/admin/poll/questions/_successful_proposals.html.erb @@ -1,8 +1,8 @@
<%= t('admin.questions.index.table_question') %><%= t("admin.actions.actions") %><%= t("admin.questions.index.table_question") %><%= t("admin.actions.actions") %>
<%= link_to question.title, admin_question_path(question) %> - <%= link_to t('shared.edit'), edit_admin_question_path(question), class: "button hollow" %> - <%= link_to t('shared.delete'), admin_question_path(question), class: "button hollow alert", method: :delete %> + +
+ <%= link_to t("shared.edit"), edit_admin_question_path(question), class: "button hollow expanded" %> +
+
+ <%= link_to t("shared.delete"), admin_question_path(question), class: "button hollow alert expanded", method: :delete %> +
- - + + @@ -15,7 +15,7 @@ <%= proposal.question %>

-
<%= t('admin.questions.index.table_proposal') %><%= t("admin.actions.actions") %><%= t("admin.questions.index.table_proposal") %><%= t("admin.actions.actions") %>
+ <%= link_to t("admin.questions.index.create_question"), new_admin_question_path(proposal_id: proposal.id), class: "button hollow" %> diff --git a/app/views/admin/poll/questions/answers/_form.html.erb b/app/views/admin/poll/questions/answers/_form.html.erb index 3bb2ebe39..cbc450813 100644 --- a/app/views/admin/poll/questions/answers/_form.html.erb +++ b/app/views/admin/poll/questions/answers/_form.html.erb @@ -12,8 +12,8 @@ ckeditor: { language: I18n.locale } %> -
- <%= f.submit(class: "button expanded", value: t("shared.save")) %> +
+ <%= f.submit(class: "button success expanded", value: t("shared.save")) %>
<% end %> diff --git a/app/views/admin/poll/questions/answers/edit.html.erb b/app/views/admin/poll/questions/answers/edit.html.erb index 48fb4ad5d..46a8784cc 100644 --- a/app/views/admin/poll/questions/answers/edit.html.erb +++ b/app/views/admin/poll/questions/answers/edit.html.erb @@ -2,7 +2,7 @@

diff --git a/app/views/admin/poll/questions/answers/new.html.erb b/app/views/admin/poll/questions/answers/new.html.erb index 1400bf765..c3af00be6 100644 --- a/app/views/admin/poll/questions/answers/new.html.erb +++ b/app/views/admin/poll/questions/answers/new.html.erb @@ -2,10 +2,10 @@ -

<%= t('admin.answers.new.title') %>

+

<%= t("admin.answers.new.title") %>

<%= render "form", form_url: admin_question_answers_path %> diff --git a/app/views/admin/poll/questions/index.html.erb b/app/views/admin/poll/questions/index.html.erb index 5a326d8f4..fcb232ecd 100644 --- a/app/views/admin/poll/questions/index.html.erb +++ b/app/views/admin/poll/questions/index.html.erb @@ -1,7 +1,7 @@ -

<%= t('admin.questions.index.title') %>

+

<%= t("admin.questions.index.title") %>

-<%= link_to t('admin.questions.index.create'), new_admin_question_path, - class: "button success float-right" %> +<%= link_to t("admin.questions.index.create"), new_admin_question_path, + class: "button float-right" %>
<%= render 'search' %> diff --git a/app/views/admin/poll/questions/show.html.erb b/app/views/admin/poll/questions/show.html.erb index fa56bfac4..094ebff83 100644 --- a/app/views/admin/poll/questions/show.html.erb +++ b/app/views/admin/poll/questions/show.html.erb @@ -29,13 +29,15 @@
+
+ <%= link_to t("admin.questions.show.add_answer"), new_admin_question_answer_path(@question), + class: "button float-right" %> +
+
<%= t('admin.questions.show.valid_answers') %> - <%= link_to t("admin.questions.show.add_answer"), - new_admin_question_answer_path(@question), - class: "button float-right" %>