From e63a862882a18cca3f3794540130f0c3840480cd Mon Sep 17 00:00:00 2001 From: Julian Herrero Date: Thu, 14 Mar 2019 17:09:58 +0100 Subject: [PATCH] Use double quotes in app/views/admin/poll --- app/views/admin/poll/active_polls/_form.html.erb | 2 +- .../_search_booths_results.html.erb | 4 ++-- app/views/admin/poll/booth_assignments/show.html.erb | 2 +- app/views/admin/poll/booths/_form.html.erb | 2 +- .../_search_officers_results.html.erb | 4 ++-- .../poll/officer_assignments/by_officer.html.erb | 2 +- app/views/admin/poll/officers/_search.html.erb | 2 +- app/views/admin/poll/officers/index.html.erb | 4 ++-- app/views/admin/poll/polls/_form.html.erb | 2 +- app/views/admin/poll/questions/_filter.html.erb | 2 +- app/views/admin/poll/questions/_form.html.erb | 2 +- app/views/admin/poll/questions/_questions.html.erb | 2 +- .../admin/poll/questions/answers/_form.html.erb | 2 +- .../admin/poll/questions/answers/documents.html.erb | 4 ++-- .../poll/questions/answers/images/destroy.js.erb | 4 ++-- .../admin/poll/questions/answers/images/new.html.erb | 4 ++-- .../poll/questions/answers/videos/_form.html.erb | 2 +- .../admin/poll/questions/answers/videos/new.html.erb | 2 +- app/views/admin/poll/questions/index.html.erb | 2 +- app/views/admin/poll/questions/show.html.erb | 4 ++-- app/views/admin/poll/recounts/index.html.erb | 2 +- app/views/admin/poll/shifts/_form.html.erb | 12 ++++++------ .../poll/shifts/_search_officers_results.html.erb | 4 ++-- 23 files changed, 36 insertions(+), 36 deletions(-) diff --git a/app/views/admin/poll/active_polls/_form.html.erb b/app/views/admin/poll/active_polls/_form.html.erb index ae402258c..4e7fc766e 100644 --- a/app/views/admin/poll/active_polls/_form.html.erb +++ b/app/views/admin/poll/active_polls/_form.html.erb @@ -2,7 +2,7 @@ <%= translatable_form_for(@active_poll, url: form_url) do |f| %> - <%= render 'shared/errors', resource: @active_poll %> + <%= render "shared/errors", resource: @active_poll %> <%= f.translatable_fields do |translations_form| %>
diff --git a/app/views/admin/poll/booth_assignments/_search_booths_results.html.erb b/app/views/admin/poll/booth_assignments/_search_booths_results.html.erb index cebde154c..5bed2f427 100644 --- a/app/views/admin/poll/booth_assignments/_search_booths_results.html.erb +++ b/app/views/admin/poll/booth_assignments/_search_booths_results.html.erb @@ -1,9 +1,9 @@ <% if @booths.blank? %>
- <%= t('admin.shared.no_search_results') %> + <%= t("admin.shared.no_search_results") %>
<% else %> -

<%= t('admin.shared.search_results') %>

+

<%= t("admin.shared.search_results") %>

<% end %> <% if @booths.any? %> diff --git a/app/views/admin/poll/booth_assignments/show.html.erb b/app/views/admin/poll/booth_assignments/show.html.erb index 4e395c6aa..5eb28ec7f 100644 --- a/app/views/admin/poll/booth_assignments/show.html.erb +++ b/app/views/admin/poll/booth_assignments/show.html.erb @@ -64,7 +64,7 @@ - <%= total_recounts_by_booth(@booth_assignment) || '-' %> + <%= total_recounts_by_booth(@booth_assignment) || "-" %> <%= @booth_assignment.voters.count %> diff --git a/app/views/admin/poll/booths/_form.html.erb b/app/views/admin/poll/booths/_form.html.erb index 5445144af..26788dcf5 100644 --- a/app/views/admin/poll/booths/_form.html.erb +++ b/app/views/admin/poll/booths/_form.html.erb @@ -1,6 +1,6 @@
<%= f.text_field :name, - placeholder: t('admin.booths.new.name'), + placeholder: t("admin.booths.new.name"), label: t("admin.booths.new.name") %>
diff --git a/app/views/admin/poll/officer_assignments/_search_officers_results.html.erb b/app/views/admin/poll/officer_assignments/_search_officers_results.html.erb index ee009f1fa..67eddef60 100644 --- a/app/views/admin/poll/officer_assignments/_search_officers_results.html.erb +++ b/app/views/admin/poll/officer_assignments/_search_officers_results.html.erb @@ -1,9 +1,9 @@ <% if @officers.blank? %>
- <%= t('admin.shared.no_search_results') %> + <%= t("admin.shared.no_search_results") %>
<% else %> -

<%= t('admin.shared.search_results') %>

+

<%= t("admin.shared.search_results") %>

<% end %> <% if @officers.any? %> diff --git a/app/views/admin/poll/officer_assignments/by_officer.html.erb b/app/views/admin/poll/officer_assignments/by_officer.html.erb index c6738eba0..21e4c9b0c 100644 --- a/app/views/admin/poll/officer_assignments/by_officer.html.erb +++ b/app/views/admin/poll/officer_assignments/by_officer.html.erb @@ -21,7 +21,7 @@ <% @officer_assignments.each do |officer_assignment| %> - <%= l(officer_assignment.date.to_date)%> <%= content_tag :strong, t('polls.final_date') if officer_assignment.final %> + <%= l(officer_assignment.date.to_date)%> <%= content_tag :strong, t("polls.final_date") if officer_assignment.final %> <%= booth_name_with_location(officer_assignment.booth_assignment.booth) %> <% end %> diff --git a/app/views/admin/poll/officers/_search.html.erb b/app/views/admin/poll/officers/_search.html.erb index dda22dee2..92e8a2de5 100644 --- a/app/views/admin/poll/officers/_search.html.erb +++ b/app/views/admin/poll/officers/_search.html.erb @@ -1,6 +1,6 @@ <%= form_tag search_admin_officers_path, method: :get, remote: true do %>
- <%= text_field_tag :email, '', + <%= text_field_tag :email, "", placeholder: t("admin.poll_officers.search.email_placeholder") %>
<%= submit_tag t("admin.poll_officers.search.search"), class: "button" %> diff --git a/app/views/admin/poll/officers/index.html.erb b/app/views/admin/poll/officers/index.html.erb index 433d0fdbf..640369feb 100644 --- a/app/views/admin/poll/officers/index.html.erb +++ b/app/views/admin/poll/officers/index.html.erb @@ -1,7 +1,7 @@

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

- <%= render 'search' %> + <%= render "search" %>
@@ -49,4 +49,4 @@ <%= paginate @officers %> -<% end %> \ No newline at end of file +<% end %> diff --git a/app/views/admin/poll/polls/_form.html.erb b/app/views/admin/poll/polls/_form.html.erb index 49939e8fd..f0fc03a5b 100644 --- a/app/views/admin/poll/polls/_form.html.erb +++ b/app/views/admin/poll/polls/_form.html.erb @@ -33,7 +33,7 @@ <% end %>
- <%= render 'images/admin_image', imageable: @poll, f: f %> + <%= render "images/admin_image", imageable: @poll, f: f %>
diff --git a/app/views/admin/poll/questions/_filter.html.erb b/app/views/admin/poll/questions/_filter.html.erb index 0fd800067..b3fca61c5 100644 --- a/app/views/admin/poll/questions/_filter.html.erb +++ b/app/views/admin/poll/questions/_filter.html.erb @@ -1,4 +1,4 @@ -<%= form_tag '', method: :get do %> +<%= form_tag "", method: :get do %> <%= label_tag :poll_id, t("admin.questions.index.filter_poll") %> <%= select_tag "poll_id", poll_select_options(true), diff --git a/app/views/admin/poll/questions/_form.html.erb b/app/views/admin/poll/questions/_form.html.erb index 2e763521b..f0ca89b0d 100644 --- a/app/views/admin/poll/questions/_form.html.erb +++ b/app/views/admin/poll/questions/_form.html.erb @@ -2,7 +2,7 @@ <%= translatable_form_for(@question, url: form_url) do |f| %> - <%= render 'shared/errors', resource: @question %> + <%= render "shared/errors", resource: @question %> <%= f.hidden_field :proposal_id %> diff --git a/app/views/admin/poll/questions/_questions.html.erb b/app/views/admin/poll/questions/_questions.html.erb index b1703f955..489a700f6 100644 --- a/app/views/admin/poll/questions/_questions.html.erb +++ b/app/views/admin/poll/questions/_questions.html.erb @@ -1,5 +1,5 @@
- <%= render 'filter' %> + <%= render "filter" %>
<% if @questions.count == 0 %> diff --git a/app/views/admin/poll/questions/answers/_form.html.erb b/app/views/admin/poll/questions/answers/_form.html.erb index 9759f6935..7598494a9 100644 --- a/app/views/admin/poll/questions/answers/_form.html.erb +++ b/app/views/admin/poll/questions/answers/_form.html.erb @@ -2,7 +2,7 @@ <%= translatable_form_for(@answer, url: form_url) do |f| %> - <%= render 'shared/errors', resource: @answer %> + <%= render "shared/errors", resource: @answer %> <%= f.hidden_field :question_id, value: @answer.question_id || @question.id %> diff --git a/app/views/admin/poll/questions/answers/documents.html.erb b/app/views/admin/poll/questions/answers/documents.html.erb index 933be2b94..6bef094c6 100644 --- a/app/views/admin/poll/questions/answers/documents.html.erb +++ b/app/views/admin/poll/questions/answers/documents.html.erb @@ -12,10 +12,10 @@ url: admin_answer_path(@answer), method: :put) do |f| %> - <%= render 'shared/errors', resource: @answer %> + <%= render "shared/errors", resource: @answer %>
- <%= render 'documents/nested_documents', documentable: @answer, f: f %> + <%= render "documents/nested_documents", documentable: @answer, f: f %>
diff --git a/app/views/admin/poll/questions/answers/images/destroy.js.erb b/app/views/admin/poll/questions/answers/images/destroy.js.erb index 9b495b605..3a10a1cff 100644 --- a/app/views/admin/poll/questions/answers/images/destroy.js.erb +++ b/app/views/admin/poll/questions/answers/images/destroy.js.erb @@ -1,3 +1,3 @@ -$('.delete').bind('ajax:success', function () { - $(this).closest('div').fadeOut() +$(".delete").bind("ajax:success", function () { + $(this).closest("div").fadeOut() }) diff --git a/app/views/admin/poll/questions/answers/images/new.html.erb b/app/views/admin/poll/questions/answers/images/new.html.erb index 00d753445..dfd4b8cfb 100644 --- a/app/views/admin/poll/questions/answers/images/new.html.erb +++ b/app/views/admin/poll/questions/answers/images/new.html.erb @@ -2,10 +2,10 @@ <%= form_for(Poll::Question::Answer.new, url: admin_answer_images_path(@answer), method: :post) do |f| %> - <%= render 'shared/errors', resource: @answer %> + <%= render "shared/errors", resource: @answer %>
- <%= render 'images/nested_image', imageable: @answer, f: f, image_fields: :images %> + <%= render "images/nested_image", imageable: @answer, f: f, image_fields: :images %>
<%= f.submit t("admin.questions.answers.images.save_image"), class: "button success" %> diff --git a/app/views/admin/poll/questions/answers/videos/_form.html.erb b/app/views/admin/poll/questions/answers/videos/_form.html.erb index 28035c397..0381706e0 100644 --- a/app/views/admin/poll/questions/answers/videos/_form.html.erb +++ b/app/views/admin/poll/questions/answers/videos/_form.html.erb @@ -1,6 +1,6 @@ <%= form_for(@video, url: form_url) do |f| %> - <%= render 'shared/errors', resource: @video %> + <%= render "shared/errors", resource: @video %> <%= f.hidden_field :answer_id, value: @video.answer_id || @answer.id %> diff --git a/app/views/admin/poll/questions/answers/videos/new.html.erb b/app/views/admin/poll/questions/answers/videos/new.html.erb index d114b9104..564817e3f 100644 --- a/app/views/admin/poll/questions/answers/videos/new.html.erb +++ b/app/views/admin/poll/questions/answers/videos/new.html.erb @@ -1,7 +1,7 @@ <%= back_link_to admin_answer_videos_path(@answer) %>

- <%= t('admin.answers.videos.new.title') %> + <%= t("admin.answers.videos.new.title") %>

diff --git a/app/views/admin/poll/questions/index.html.erb b/app/views/admin/poll/questions/index.html.erb index fcb232ecd..d5fac81e4 100644 --- a/app/views/admin/poll/questions/index.html.erb +++ b/app/views/admin/poll/questions/index.html.erb @@ -4,7 +4,7 @@ class: "button float-right" %>
- <%= render 'search' %> + <%= render "search" %>
diff --git a/app/views/admin/poll/questions/show.html.erb b/app/views/admin/poll/questions/show.html.erb index 094ebff83..88daffcc6 100644 --- a/app/views/admin/poll/questions/show.html.erb +++ b/app/views/admin/poll/questions/show.html.erb @@ -1,6 +1,6 @@ <%= back_link_to %> -<%= link_to t('admin.questions.show.edit_question'), edit_admin_question_path(@question), +<%= link_to t("admin.questions.show.edit_question"), edit_admin_question_path(@question), class: "button hollow float-right" %>
@@ -37,7 +37,7 @@ diff --git a/app/views/admin/poll/recounts/index.html.erb b/app/views/admin/poll/recounts/index.html.erb index f55facfbd..5b73f9c34 100644 --- a/app/views/admin/poll/recounts/index.html.erb +++ b/app/views/admin/poll/recounts/index.html.erb @@ -40,7 +40,7 @@
- <%= t('admin.questions.show.valid_answers') %> + <%= t("admin.questions.show.valid_answers") %>
- <%= link_to booth_assignment.booth.name, admin_poll_booth_assignment_path(@poll, booth_assignment, anchor: 'tab-recounts') %> + <%= link_to booth_assignment.booth.name, admin_poll_booth_assignment_path(@poll, booth_assignment, anchor: "tab-recounts") %> diff --git a/app/views/admin/poll/shifts/_form.html.erb b/app/views/admin/poll/shifts/_form.html.erb index 7e2930751..0ea7cfb4a 100644 --- a/app/views/admin/poll/shifts/_form.html.erb +++ b/app/views/admin/poll/shifts/_form.html.erb @@ -18,22 +18,22 @@ Poll::Shift.tasks.map {|k,v| [t("admin.poll_shifts.#{k}"), k]}, { prompt: t("admin.poll_shifts.new.select_task"), label: false }, - class: 'js-poll-shifts' %> + class: "js-poll-shifts" %>
- <%= select 'shift[date]', 'vote_collection_date', + <%= select "shift[date]", "vote_collection_date", options_for_select(shift_vote_collection_dates(@booth, @voting_polls)), { prompt: @voting_polls.present? ? t("admin.poll_shifts.new.select_date") : t("admin.poll_shifts.new.no_voting_days"), label: false }, - class: 'js-shift-vote-collection-dates' %> - <%= select 'shift[date]', 'recount_scrutiny_date', + class: "js-shift-vote-collection-dates" %> + <%= select "shift[date]", "recount_scrutiny_date", options_for_select(shift_recount_scrutiny_dates(@booth, @recount_polls)), { prompt: t("admin.poll_shifts.new.select_date"), label: false }, - class: 'js-shift-recount-scrutiny-dates', - hidden: 'hidden' %> + class: "js-shift-recount-scrutiny-dates", + hidden: "hidden" %>
<%= f.hidden_field :booth_id, value: @booth.id %> diff --git a/app/views/admin/poll/shifts/_search_officers_results.html.erb b/app/views/admin/poll/shifts/_search_officers_results.html.erb index 70525ba6d..b19db5e79 100644 --- a/app/views/admin/poll/shifts/_search_officers_results.html.erb +++ b/app/views/admin/poll/shifts/_search_officers_results.html.erb @@ -1,9 +1,9 @@ <% if @officers.blank? %>
- <%= t('admin.shared.no_search_results') %> + <%= t("admin.shared.no_search_results") %>
<% else %> -

<%= t('admin.shared.search_results') %>

+

<%= t("admin.shared.search_results") %>