Use double quotes in app/views/management
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
<%= link_to t("management.menu.support_proposals"), management_proposals_path %>
|
||||
</li>
|
||||
|
||||
<% if Setting['feature.budgets'] %>
|
||||
<% if Setting["feature.budgets"] %>
|
||||
<li <%= "class=is-active" if menu_create_investments? %>>
|
||||
<%= link_to t("management.menu.create_budget_investment"), create_investments_management_budgets_path %>
|
||||
</li>
|
||||
@@ -42,7 +42,7 @@
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<% if Setting['feature.budgets'] %>
|
||||
<% if Setting["feature.budgets"] %>
|
||||
<li <%= "class=is-active" if menu_print_investments? %>>
|
||||
<%= link_to print_investments_management_budgets_path do %>
|
||||
<span class="icon-print"></span>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<%= link_to t("management.account.edit.password.random"), '#', class: 'generate-random-value float-right' %>
|
||||
<%= link_to t("management.account.edit.password.random"), "#", class: "generate-random-value float-right" %>
|
||||
</div>
|
||||
|
||||
<%= f.submit t("management.account.edit.password.save"), class: "button success" %>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<div class="columns small-4">
|
||||
<%= link_to t("management.account.edit.back"), edit_password_manually_management_account_path(managed_user.id), class: "button hollow" %>
|
||||
<a id="print_link" href="javascript:window.print();" class="button warning">
|
||||
<%= t('management.account.edit.password.print') %>
|
||||
<%= t("management.account.edit.password.print") %>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<h2><%= t("management.account.show.title") %></h2>
|
||||
|
||||
<%= render 'management/users/erase_user_account' %>
|
||||
<%= render "management/users/erase_user_account" %>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<main>
|
||||
<span class="not-print">
|
||||
<%= render 'admin/shared/budget_investment_search', url: management_budget_investments_path(@budget) %>
|
||||
<%= render "admin/shared/budget_investment_search", url: management_budget_investments_path(@budget) %>
|
||||
</span>
|
||||
|
||||
<div class="wrap row">
|
||||
@@ -18,7 +18,7 @@
|
||||
</div>
|
||||
|
||||
<% @investments.each do |investment| %>
|
||||
<%= render partial: '/budgets/investments/investment', locals: {
|
||||
<%= render partial: "/budgets/investments/investment", locals: {
|
||||
investment: investment,
|
||||
investment_ids: @investment_ids,
|
||||
investment_votes: @investment_votes,
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<div class="budget-investment-new">
|
||||
|
||||
<div class="clear float-right">
|
||||
<%= render '/shared/print' %>
|
||||
<%= render "/shared/print" %>
|
||||
</div>
|
||||
|
||||
<div class="small-12 medium-9 column end">
|
||||
<h2><%= t("management.budget_investments.create") %></h2>
|
||||
|
||||
<%= render '/budgets/investments/form', form_url: management_budget_investments_path(@budget) %>
|
||||
<%= render "/budgets/investments/form", form_url: management_budget_investments_path(@budget) %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<main>
|
||||
<span class="not-print">
|
||||
<%= render 'admin/shared/budget_investment_search', url: print_management_budget_investments_path(@budget) %>
|
||||
<%= render "admin/shared/budget_investment_search", url: print_management_budget_investments_path(@budget) %>
|
||||
</span>
|
||||
|
||||
<div class="wrap row">
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<div class="not-print">
|
||||
<a id="print_link" href="javascript:window.print();" class="button warning float-right">
|
||||
<%= t('management.budget_investments.print.print_button') %>
|
||||
<%= t("management.budget_investments.print.print_button") %>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
</div>
|
||||
|
||||
<% @investments.each do |investment| %>
|
||||
<%= render partial: '/budgets/investments/investment', locals: {
|
||||
<%= render partial: "/budgets/investments/investment", locals: {
|
||||
investment: investment,
|
||||
investment_ids: @investment_ids,
|
||||
investment_votes: @investment_votes,
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<% provide :title do %><%= @investment.title %><% end %>
|
||||
|
||||
<%= render '/shared/print' %>
|
||||
<%= render "/shared/print" %>
|
||||
|
||||
<%= render partial: '/budgets/investments/investment_show', locals: {
|
||||
<%= render partial: "/budgets/investments/investment_show", locals: {
|
||||
investment: @investment,
|
||||
investment_votes: @investment_votes
|
||||
} %>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
</div>
|
||||
<div class="small-12 medium-5">
|
||||
<%= f.text_field :document_number,
|
||||
placeholder: t('management.document_number'),
|
||||
placeholder: t("management.document_number"),
|
||||
label: t("management.document_number")
|
||||
%>
|
||||
</div>
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<%= render 'management/user_permissions',
|
||||
<%= render "management/user_permissions",
|
||||
message: t("management.document_verifications.not_in_census_info"),
|
||||
permissions: [:debates, :create_proposals] %>
|
||||
|
||||
<p>
|
||||
<%= t("management.document_verifications.has_no_account_html",
|
||||
link: link_to(t('management.document_verifications.link'), root_path, target: "_blank")).html_safe %>
|
||||
link: link_to(t("management.document_verifications.link"), root_path, target: "_blank")).html_safe %>
|
||||
</p>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<%= t("management.document_verifications.please_check_account_data") %>
|
||||
</div>
|
||||
|
||||
<%= render 'management/user_permissions',
|
||||
<%= render "management/user_permissions",
|
||||
message: t("management.document_verifications.in_census_has_following_permissions"),
|
||||
permissions: [:debates, :create_proposals, :support_proposals] %>
|
||||
|
||||
@@ -14,4 +14,4 @@
|
||||
<%= f.submit t("management.document_verifications.verify"), class: "button success" %>
|
||||
<% end %>
|
||||
|
||||
<%= render 'management/users/erase_user_account' %>
|
||||
<%= render "management/users/erase_user_account" %>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<%= t("management.document_verifications.already_verified") %>
|
||||
</div>
|
||||
|
||||
<%= render 'management/user_permissions',
|
||||
<%= render "management/user_permissions",
|
||||
message: t("management.document_verifications.in_census_has_following_permissions"),
|
||||
permissions: [:debates, :create_proposals, :support_proposals, :vote_proposals] %>
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
url: management_email_verifications_path do |f| %>
|
||||
<%= f.hidden_field :document_type %>
|
||||
<%= f.hidden_field :document_number %>
|
||||
<%= f.text_field :email, label: false, placeholder: t('management.email_verifications.email_placeholder') %>
|
||||
<%= f.text_field :email, label: false, placeholder: t("management.email_verifications.email_placeholder") %>
|
||||
|
||||
<%= f.submit t("management.email_verifications.send_email"), class: "button hollow" %>
|
||||
<% end %>
|
||||
@@ -23,7 +23,7 @@
|
||||
<strong><%= t("management.email_verifications.if_no_existing_account") %></strong>
|
||||
|
||||
<p class="margin-top">
|
||||
<%= link_to t('management.users.create_user'), new_management_user_path(user: params[:email_verification]), class: "button success" %>
|
||||
<%= link_to t("management.users.create_user"), new_management_user_path(user: params[:email_verification]), class: "button success" %>
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<%= t("management.email_verifications.email_sent_instructions") %>
|
||||
</div>
|
||||
|
||||
<%= render 'management/user_permissions',
|
||||
<%= render "management/user_permissions",
|
||||
message: t("management.email_verifications.document_found_in_census"),
|
||||
permissions: [:debates, :create_proposals, :support_proposals, :vote_proposals] %>
|
||||
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
<%= render 'proposals/votes',
|
||||
{ proposal: proposal, vote_url: vote_management_proposal_path(proposal, value: 'yes') } %>
|
||||
<%= render "proposals/votes",
|
||||
{ proposal: proposal, vote_url: vote_management_proposal_path(proposal, value: "yes") } %>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<main>
|
||||
<h2><%= t("management.proposals.index.title") %></h2>
|
||||
|
||||
<%= render 'admin/shared/proposal_search', url: management_proposals_path %>
|
||||
<%= render "admin/shared/proposal_search", url: management_proposals_path %>
|
||||
|
||||
<div class="management-list">
|
||||
<div class="proposals-list">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div class="proposal-form">
|
||||
|
||||
<div class="clear float-right">
|
||||
<%= render '/shared/print' %>
|
||||
<%= render "/shared/print" %>
|
||||
</div>
|
||||
|
||||
<div class="small-12 medium-9 column end">
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<div class="row">
|
||||
<div class="proposals-list">
|
||||
<a id="print_link" href="javascript:window.print();" class="button warning float-right">
|
||||
<%= t('management.proposals.print.print_button') %>
|
||||
<%= t("management.proposals.print.print_button") %>
|
||||
</a>
|
||||
|
||||
<%= image_tag "header_print_proposals.jpg", class: "for-print-only" %>
|
||||
@@ -14,7 +14,7 @@
|
||||
<span class="not-print"><%= t("proposals.index.select_order_long") %></span>
|
||||
<span class="for-print-only"><%= t("management.print.proposals_title") %></span>
|
||||
</h2>
|
||||
<%= render 'shared/order_selector', i18n_namespace: "proposals.index" %>
|
||||
<%= render "shared/order_selector", i18n_namespace: "proposals.index" %>
|
||||
</div>
|
||||
|
||||
<%= render @proposals %>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<%= render '/shared/print' %>
|
||||
<%= render "/shared/print" %>
|
||||
|
||||
<%= render template: 'proposals/show' %>
|
||||
<%= render template: "proposals/show" %>
|
||||
|
||||
@@ -1 +1 @@
|
||||
<%= render template: 'proposals/vote' %>
|
||||
<%= render template: "proposals/vote" %>
|
||||
@@ -1 +1 @@
|
||||
<%= render partial: 'spending_proposals/spending_proposal', locals: {spending_proposal: spending_proposal} %>
|
||||
<%= render partial: "spending_proposals/spending_proposal", locals: {spending_proposal: spending_proposal} %>
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
<%= render 'spending_proposals/votes',
|
||||
{ spending_proposal: spending_proposal, vote_url: vote_management_spending_proposal_path(spending_proposal, value: 'yes') } %>
|
||||
<%= render "spending_proposals/votes",
|
||||
{ spending_proposal: spending_proposal, vote_url: vote_management_spending_proposal_path(spending_proposal, value: "yes") } %>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<main>
|
||||
<span class="not-print">
|
||||
<%= render 'admin/shared/spending_proposal_search', url: management_spending_proposals_path %>
|
||||
<%= render "admin/shared/spending_proposal_search", url: management_spending_proposals_path %>
|
||||
</span>
|
||||
|
||||
<div class="row">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div class="spending-proposal-form">
|
||||
|
||||
<div class="clear float-right">
|
||||
<%= render '/shared/print' %>
|
||||
<%= render "/shared/print" %>
|
||||
</div>
|
||||
|
||||
<div class="small-12 medium-9 column end">
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<% end %>
|
||||
|
||||
<a id="print_link" href="javascript:window.print();" class="button warning float-right">
|
||||
<%= t('management.spending_proposals.print.print_button') %>
|
||||
<%= t("management.spending_proposals.print.print_button") %>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<%= render '/shared/print' %>
|
||||
<%= render "/shared/print" %>
|
||||
|
||||
<%= render template: 'spending_proposals/show' %>
|
||||
<%= render template: "spending_proposals/show" %>
|
||||
|
||||
@@ -1 +1 @@
|
||||
<%= render template: 'spending_proposals/vote' %>
|
||||
<%= render template: "spending_proposals/vote" %>
|
||||
@@ -1,10 +1,10 @@
|
||||
<h2><%= t("management.user_invites.new.title") %></h2>
|
||||
|
||||
<%= form_tag management_user_invites_path do %>
|
||||
<label><%= t('management.user_invites.new.label') %></label>
|
||||
<p class="help-text" id="emails-help-text"><%= t('management.user_invites.new.info') %></p>
|
||||
<label><%= t("management.user_invites.new.label") %></label>
|
||||
<p class="help-text" id="emails-help-text"><%= t("management.user_invites.new.info") %></p>
|
||||
<%= text_area_tag "emails", nil, rows: 5,
|
||||
placeholder: t('management.user_invites.new.info'),
|
||||
placeholder: t("management.user_invites.new.info"),
|
||||
aria: {describedby: "emails-help-text"} %>
|
||||
<div class="small-12 medium-6 large-3">
|
||||
<input type="submit" name="" value="<%= t('management.user_invites.new.submit') %>", class="button expanded">
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
<%= f.hidden_field :document_type %>
|
||||
<%= f.hidden_field :document_number %>
|
||||
<%= f.text_field :username,
|
||||
label: t('management.username_label'),
|
||||
placeholder: t('management.username_label') %>
|
||||
label: t("management.username_label"),
|
||||
placeholder: t("management.username_label") %>
|
||||
<%= f.text_field :email,
|
||||
label: t('management.users.email_optional_label'),
|
||||
placeholder: t('management.email_label') %>
|
||||
label: t("management.users.email_optional_label"),
|
||||
placeholder: t("management.email_label") %>
|
||||
<div class="date-of-birth">
|
||||
<%= f.label t("management.date_of_birth") %>
|
||||
<%= f.date_select :date_of_birth,
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<p><%= t("management.users.create_user_success_html", email: @user.email) %></p>
|
||||
<% end %>
|
||||
|
||||
<%= render 'management/user_permissions',
|
||||
<%= render "management/user_permissions",
|
||||
message: t("management.document_verifications.in_census_has_following_permissions"),
|
||||
permissions: [:debates, :create_proposals, :support_proposals, :vote_proposals] %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user