Use double quotes in app/views/admin/poll
This commit is contained in:
@@ -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| %>
|
||||
<div class="ckeditor">
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<% if @booths.blank? %>
|
||||
<div class="callout alert margin-bottom">
|
||||
<%= t('admin.shared.no_search_results') %>
|
||||
<%= t("admin.shared.no_search_results") %>
|
||||
</div>
|
||||
<% else %>
|
||||
<h3><%= t('admin.shared.search_results') %></h3>
|
||||
<h3><%= t("admin.shared.search_results") %></h3>
|
||||
<% end %>
|
||||
|
||||
<% if @booths.any? %>
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="text-center" id="total_final">
|
||||
<%= total_recounts_by_booth(@booth_assignment) || '-' %>
|
||||
<%= total_recounts_by_booth(@booth_assignment) || "-" %>
|
||||
</td>
|
||||
<td class="text-center" id="total_system">
|
||||
<%= @booth_assignment.voters.count %>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<div class="small-12 medium-6 column">
|
||||
<%= f.text_field :name,
|
||||
placeholder: t('admin.booths.new.name'),
|
||||
placeholder: t("admin.booths.new.name"),
|
||||
label: t("admin.booths.new.name") %>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<% if @officers.blank? %>
|
||||
<div class="callout alert margin-bottom">
|
||||
<%= t('admin.shared.no_search_results') %>
|
||||
<%= t("admin.shared.no_search_results") %>
|
||||
</div>
|
||||
<% else %>
|
||||
<h3><%= t('admin.shared.search_results') %></h3>
|
||||
<h3><%= t("admin.shared.search_results") %></h3>
|
||||
<% end %>
|
||||
|
||||
<% if @officers.any? %>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<tbody>
|
||||
<% @officer_assignments.each do |officer_assignment| %>
|
||||
<tr id="<%= dom_id officer_assignment %>">
|
||||
<td><%= l(officer_assignment.date.to_date)%> <%= content_tag :strong, t('polls.final_date') if officer_assignment.final %></td>
|
||||
<td><%= l(officer_assignment.date.to_date)%> <%= content_tag :strong, t("polls.final_date") if officer_assignment.final %></td>
|
||||
<td><%= booth_name_with_location(officer_assignment.booth_assignment.booth) %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<%= form_tag search_admin_officers_path, method: :get, remote: true do %>
|
||||
<div class="input-group">
|
||||
<%= text_field_tag :email, '',
|
||||
<%= text_field_tag :email, "",
|
||||
placeholder: t("admin.poll_officers.search.email_placeholder") %>
|
||||
<div class="input-group-button">
|
||||
<%= submit_tag t("admin.poll_officers.search.search"), class: "button" %>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<h2><%= t("admin.poll_officers.index.title") %></h2>
|
||||
|
||||
<div class="small-12 medium-6">
|
||||
<%= render 'search' %>
|
||||
<%= render "search" %>
|
||||
</div>
|
||||
|
||||
<div id="search-result"></div>
|
||||
@@ -49,4 +49,4 @@
|
||||
</table>
|
||||
|
||||
<%= paginate @officers %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
<% end %>
|
||||
|
||||
<div class="small-12 column">
|
||||
<%= render 'images/admin_image', imageable: @poll, f: f %>
|
||||
<%= render "images/admin_image", imageable: @poll, f: f %>
|
||||
</div>
|
||||
|
||||
<div class="clear">
|
||||
|
||||
@@ -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),
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div class="small-12 medium-4 large-3">
|
||||
<%= render 'filter' %>
|
||||
<%= render "filter" %>
|
||||
</div>
|
||||
|
||||
<% if @questions.count == 0 %>
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
|
||||
@@ -12,10 +12,10 @@
|
||||
url: admin_answer_path(@answer),
|
||||
method: :put) do |f| %>
|
||||
|
||||
<%= render 'shared/errors', resource: @answer %>
|
||||
<%= render "shared/errors", resource: @answer %>
|
||||
|
||||
<div class="documents">
|
||||
<%= render 'documents/nested_documents', documentable: @answer, f: f %>
|
||||
<%= render "documents/nested_documents", documentable: @answer, f: f %>
|
||||
</div>
|
||||
|
||||
<div class="small-12 medium-6 large-2">
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
$('.delete').bind('ajax:success', function () {
|
||||
$(this).closest('div').fadeOut()
|
||||
$(".delete").bind("ajax:success", function () {
|
||||
$(this).closest("div").fadeOut()
|
||||
})
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
<div class="images">
|
||||
<%= render 'images/nested_image', imageable: @answer, f: f, image_fields: :images %>
|
||||
<%= render "images/nested_image", imageable: @answer, f: f, image_fields: :images %>
|
||||
</div>
|
||||
|
||||
<%= f.submit t("admin.questions.answers.images.save_image"), class: "button success" %>
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<%= back_link_to admin_answer_videos_path(@answer) %>
|
||||
|
||||
<h2>
|
||||
<%= t('admin.answers.videos.new.title') %>
|
||||
<%= t("admin.answers.videos.new.title") %>
|
||||
</h2>
|
||||
|
||||
<div class="poll-question-answer-video-form">
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
class: "button float-right" %>
|
||||
|
||||
<div class="small-12 medium-6">
|
||||
<%= render 'search' %>
|
||||
<%= render "search" %>
|
||||
</div>
|
||||
|
||||
<div class="tabs-content" data-tabs-content="questions-tabs">
|
||||
|
||||
@@ -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" %>
|
||||
|
||||
<div class="clear"></div>
|
||||
@@ -37,7 +37,7 @@
|
||||
<table class="margin-top">
|
||||
<tr>
|
||||
<th colspan="5" scope="col" class="with-button">
|
||||
<%= t('admin.questions.show.valid_answers') %>
|
||||
<%= t("admin.questions.show.valid_answers") %>
|
||||
</th>
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
<tr id="<%= dom_id(booth_assignment) %>_recounts" class="booth_recounts">
|
||||
<td>
|
||||
<strong>
|
||||
<%= 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") %>
|
||||
</strong>
|
||||
</td>
|
||||
<td class="text-center <%= 'count-error' if total_recounts.to_i != system_count %>">
|
||||
|
||||
@@ -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" %>
|
||||
</div>
|
||||
|
||||
<div class="small-12 medium-3 column">
|
||||
<label><%= t("admin.poll_shifts.new.date") %></label>
|
||||
<%= 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" %>
|
||||
</div>
|
||||
|
||||
<%= f.hidden_field :booth_id, value: @booth.id %>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<% if @officers.blank? %>
|
||||
<div class="callout alert margin-bottom">
|
||||
<%= t('admin.shared.no_search_results') %>
|
||||
<%= t("admin.shared.no_search_results") %>
|
||||
</div>
|
||||
<% else %>
|
||||
<h3><%= t('admin.shared.search_results') %></h3>
|
||||
<h3><%= t("admin.shared.search_results") %></h3>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
|
||||
Reference in New Issue
Block a user