Use double quotes in app/views/admin/legislation
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
<%= f.submit(class: "button", value: t("admin.legislation.draft_versions.#{admin_submit_action(@draft_version)}.submit_button")) %>
|
||||
</div>
|
||||
|
||||
<%= link_to "#", class: 'fullscreen-toggle' do %>
|
||||
<%= link_to "#", class: "fullscreen-toggle" do %>
|
||||
<span data-closed-text="<%= t("admin.legislation.draft_versions.form.launch_text_editor")%>"
|
||||
data-open-text="<%= t("admin.legislation.draft_versions.form.close_text_editor")%>">
|
||||
<strong><%= t("admin.legislation.draft_versions.form.launch_text_editor")%></strong>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
<h2><%= @process.title %></h2>
|
||||
|
||||
<%= render 'admin/legislation/processes/subnav', process: @process, active: 'draft_versions' %>
|
||||
<%= render "admin/legislation/processes/subnav", process: @process, active: "draft_versions" %>
|
||||
|
||||
<div class="small-12 column">
|
||||
<div class="callout warning" style="display: none;">
|
||||
@@ -24,10 +24,10 @@
|
||||
<%= link_to t("admin.legislation.draft_versions.index.delete"),
|
||||
admin_legislation_process_draft_version_path(@process, @draft_version),
|
||||
method: :delete,
|
||||
class: 'button hollow alert' %>
|
||||
class: "button hollow alert" %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= render 'form', url: admin_legislation_process_draft_version_path(@process, @draft_version) %>
|
||||
<%= render "form", url: admin_legislation_process_draft_version_path(@process, @draft_version) %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<h2><%= @process.title %></h2>
|
||||
|
||||
<%= render 'admin/legislation/processes/subnav', process: @process, active: 'draft_versions' %>
|
||||
<%= render "admin/legislation/processes/subnav", process: @process, active: "draft_versions" %>
|
||||
|
||||
<div class="small-12 column">
|
||||
<h4 class="inline-block"><%= t("admin.legislation.draft_versions.index.title") %></h4>
|
||||
@@ -36,7 +36,7 @@
|
||||
</td>
|
||||
<td><%= draft_version.created_at.to_date %></td>
|
||||
<td>
|
||||
<% if draft_version.status == 'draft' %>
|
||||
<% if draft_version.status == "draft" %>
|
||||
<%= t("admin.legislation.draft_versions.statuses.draft") %>
|
||||
<%= link_to "(#{t('.preview')})", legislation_process_draft_version_path(@process, draft_version) %>
|
||||
<% else %>
|
||||
|
||||
@@ -9,12 +9,12 @@
|
||||
|
||||
<h2><%= @process.title %></h2>
|
||||
|
||||
<%= render 'admin/legislation/processes/subnav', process: @process, active: 'draft_versions' %>
|
||||
<%= render "admin/legislation/processes/subnav", process: @process, active: "draft_versions" %>
|
||||
|
||||
<div class="small-12 column">
|
||||
<h3><%= t("admin.legislation.draft_versions.new.title") %></h3>
|
||||
</div>
|
||||
|
||||
<%= render 'form', url: admin_legislation_process_draft_versions_path(@process) %>
|
||||
<%= render "form", url: admin_legislation_process_draft_versions_path(@process) %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<%= translations_form.cktext_area :homepage,
|
||||
language: I18n.locale,
|
||||
label: t("admin.legislation.processes.form.homepage"),
|
||||
ckeditor: { height: 500, toolbar: 'admin' },
|
||||
ckeditor: { height: 500, toolbar: "admin" },
|
||||
hint: t("admin.legislation.processes.form.homepage_description") %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<h2><%= @process.title %></h2>
|
||||
|
||||
<%= render 'admin/legislation/processes/subnav', process: @process, active: 'homepage' %>
|
||||
<%= render "admin/legislation/processes/subnav", process: @process, active: "homepage" %>
|
||||
|
||||
<%= render 'form', url: admin_legislation_process_homepage_path(@process) %>
|
||||
<%= render "form", url: admin_legislation_process_homepage_path(@process) %>
|
||||
</div>
|
||||
|
||||
@@ -172,7 +172,7 @@
|
||||
</div>
|
||||
|
||||
<div class="documents small-12 column">
|
||||
<%= render 'documents/nested_documents', documentable: @process, f: f %>
|
||||
<%= render "documents/nested_documents", documentable: @process, f: f %>
|
||||
</div>
|
||||
|
||||
<div class="small-12 column">
|
||||
@@ -180,7 +180,7 @@
|
||||
</div>
|
||||
|
||||
<div class="images small-12 column">
|
||||
<%= render 'images/nested_image', imageable: @process, f: f %>
|
||||
<%= render "images/nested_image", imageable: @process, f: f %>
|
||||
</div>
|
||||
|
||||
<div class="small-12 column">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<h2><%= @process.title %></h2>
|
||||
|
||||
<%= render 'subnav', process: @process, active: 'info' %>
|
||||
<%= render "subnav", process: @process, active: "info" %>
|
||||
|
||||
<%= render 'form' %>
|
||||
<%= render "form" %>
|
||||
</div>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<%= link_to t("admin.legislation.processes.index.create"), new_admin_legislation_process_path,
|
||||
class: "button float-right" %>
|
||||
|
||||
<%= render 'shared/filter_subnav', i18n_namespace: "admin.legislation.processes.index" %>
|
||||
<%= render "shared/filter_subnav", i18n_namespace: "admin.legislation.processes.index" %>
|
||||
|
||||
<% if @processes.any? %>
|
||||
<h3><%= page_entries_info @processes %></h3>
|
||||
@@ -37,7 +37,7 @@
|
||||
<td>
|
||||
<%= link_to t("admin.legislation.processes.index.delete"), admin_legislation_process_path(process),
|
||||
method: :delete,
|
||||
class: 'button hollow alert expanded' %>
|
||||
class: "button hollow alert expanded" %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
<div id="nested_question_options">
|
||||
<%= f.fields_for :question_options do |ff| %>
|
||||
<%= render 'question_option_fields', f: ff %>
|
||||
<%= render "question_option_fields", f: ff %>
|
||||
<% end %>
|
||||
|
||||
<div class="js-add-fields-container">
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<h2><%= @process.title %></h2>
|
||||
|
||||
<%= render 'admin/legislation/processes/subnav', process: @process, active: 'questions' %>
|
||||
<%= render "admin/legislation/processes/subnav", process: @process, active: "questions" %>
|
||||
|
||||
<div class="small-12 column">
|
||||
<h3 class="inline-block"><%= t("admin.legislation.questions.edit.title", question_title: @question.title) %></h3>
|
||||
@@ -16,10 +16,10 @@
|
||||
<div class="float-right">
|
||||
<%= link_to t("admin.legislation.questions.index.delete"), admin_legislation_process_question_path(@process, @question),
|
||||
method: :delete,
|
||||
class: 'button hollow alert' %>
|
||||
class: "button hollow alert" %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= render 'form', url: admin_legislation_process_question_path(@process, @question) %>
|
||||
<%= render "form", url: admin_legislation_process_question_path(@process, @question) %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<h2><%= @process.title %></h2>
|
||||
|
||||
<%= render 'admin/legislation/processes/subnav', process: @process, active: 'questions' %>
|
||||
<%= render "admin/legislation/processes/subnav", process: @process, active: "questions" %>
|
||||
|
||||
<div class="small-12 column">
|
||||
<h4 class="inline-block"><%= t("admin.legislation.questions.index.title") %></h4>
|
||||
@@ -42,7 +42,7 @@
|
||||
<% end %>
|
||||
</td>
|
||||
<td class="text-center"><%= question.answers_count %></td>
|
||||
<td class="text-center"><%= link_to question.comments.count, legislation_process_question_path(@process, question, anchor: 'comments') %></td>
|
||||
<td class="text-center"><%= link_to question.comments.count, legislation_process_question_path(@process, question, anchor: "comments") %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
|
||||
<h2><%= @process.title %></h2>
|
||||
|
||||
<%= render 'admin/legislation/processes/subnav', process: @process, active: 'questions' %>
|
||||
<%= render "admin/legislation/processes/subnav", process: @process, active: "questions" %>
|
||||
|
||||
<div class="small-12 column">
|
||||
<h3><%= t("admin.legislation.questions.new.title") %></h3>
|
||||
</div>
|
||||
|
||||
<%= render 'form', url: admin_legislation_process_questions_path(@process) %>
|
||||
<%= render "form", url: admin_legislation_process_questions_path(@process) %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user