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