Applies the same renaming done in management.yml to the views
This commit is contained in:
@@ -9,10 +9,10 @@
|
||||
<p><%= message %></p>
|
||||
|
||||
<ul>
|
||||
<% [:debates, :proposal, :support_proposal, :votes].each do |permission| %>
|
||||
<% [:debates, :create_proposals, :support_proposals, :vote_proposals].each do |permission| %>
|
||||
<li>
|
||||
<i class="<%= permissions.include?(permission) ? 'icon-check' : 'icon-x' %>"></i>
|
||||
<%= t("management.users.user_permission_#{permission}") %>
|
||||
<%= t("management.permissions.#{permission}") %>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
<%= render 'management/account_info.html', verification: @document_verification %>
|
||||
|
||||
<div class="alert-box alert radius">
|
||||
<%= t("management.users.census_error") %>
|
||||
<%= t("management.document_verifications.not_in_census") %>
|
||||
</div>
|
||||
|
||||
<%= render 'management/user_permissions',
|
||||
message: t("management.users.census_error_info"),
|
||||
permissions: [:debates, :proposal] %>
|
||||
message: t("management.document_verifications.not_in_census_info"),
|
||||
permissions: [:debates, :create_proposals] %>
|
||||
|
||||
<p>
|
||||
<%= t("management.users.has_not_account_html",
|
||||
url: link_to(t("management.users.portal_url"), t("management.users.portal_url"),
|
||||
target: "_blank")).html_safe %>
|
||||
<%= t("management.document_verifications.has_no_account_html",
|
||||
link: link_to('http://decide.madrid.es', 'http://decide.madrid.es'),
|
||||
target: "_blank") %>
|
||||
</p>
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
<%= render 'management/account_info.html', verification: @document_verification %>
|
||||
|
||||
<div class="alert-box success radius">
|
||||
<%= t("management.users.census_success_account") %>
|
||||
<%= t("management.document_verifications.please_check_account_data") %>
|
||||
</div>
|
||||
|
||||
<%= render 'management/user_permissions',
|
||||
message: t("management.users.census_success_info"),
|
||||
permissions: [:debates, :proposal, :support_proposal] %>
|
||||
message: t("management.document_verifications.in_census_has_following_permissions"),
|
||||
permissions: [:debates, :create_proposals, :support_proposals] %>
|
||||
|
||||
<%= form_for @document_verification, url: management_on_site_verifications_path do |f| %>
|
||||
<%= form_for @document_verification,
|
||||
as: :document_verification,
|
||||
url: management_document_verifications_path do |f| %>
|
||||
<%= f.hidden_field :document_type %>
|
||||
<%= f.hidden_field :document_number %>
|
||||
<%= f.submit t("management.users.verify"), class: "button success radius" %>
|
||||
<%= f.submit t("management.document_verifications.verify"), class: "button success radius" %>
|
||||
<% end %>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<%= render 'management/account_info.html', verification: @document_verification %>
|
||||
|
||||
<div class="alert-box success radius">
|
||||
<%= t("management.users.already_verified") %>
|
||||
<%= t("management.document_verifications.already_verified") %>
|
||||
</div>
|
||||
|
||||
<%= render 'management/user_permissions',
|
||||
message: t("management.users.census_success_info"),
|
||||
permissions: [:debates, :proposal, :support_proposal] %>
|
||||
message: t("management.document_verifications.in_census_has_following_permissions"),
|
||||
permissions: [:debates, :create_proposals, :support_proposals, :vote_proposals] %>
|
||||
|
||||
<a href="javascript:window.print();" class="button warning radius"><%= t("management.print_info") %></a>
|
||||
|
||||
@@ -1,28 +1,28 @@
|
||||
<%= render 'management/account_info.html', verification: @email_verification %>
|
||||
|
||||
<div class="alert-box success radius">
|
||||
<%= t("management.users.census_success") %>
|
||||
<%= t("management.email_verifications.document_found_in_census") %>
|
||||
</div>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<strong><%= t("management.users.has_account") %></strong>
|
||||
<strong><%= t("management.email_verifications.if_existing_account") %></strong>
|
||||
|
||||
<p><%= t("management.users.has_account_note") %></p>
|
||||
<p><%= t("management.email_verifications.introduce_email") %></p>
|
||||
|
||||
<%= form_for @email_verification,
|
||||
as: :email_verification,
|
||||
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.users.has_account_placeholder') %>
|
||||
<%= f.text_field :email, label: false, placeholder: t('management.email_verifications.email_placeholder') %>
|
||||
|
||||
<%= f.submit t("management.users.has_account_send_email"), class: "button success radius" %>
|
||||
<%= f.submit t("management.email_verifications.send_email"), class: "button success radius" %>
|
||||
<% end %>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<strong><%= t("management.users.has_not_account") %></strong>
|
||||
<strong><%= t("management.emails_verifications.if_no_existing_account") %></strong>
|
||||
|
||||
<p class="margin-top">
|
||||
<a href="javascript:window.print();" class="button warning radius"><%= t("management.print_info") %></a>
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<%= render 'management/account_info.html', verification: @email_verification %>
|
||||
|
||||
<div class="alert-box success radius">
|
||||
<%= t("management.users.email_sent") %>
|
||||
<%= t("management.email_verifications.email_sent_instructions") %>
|
||||
</div>
|
||||
|
||||
<%= render 'management/user_permissions',
|
||||
message: t("management.users.census_success_info"),
|
||||
permissions: [:debates, :proposal, :support_proposal, :votes] %>
|
||||
message: t("management.email_verifications.document_found_in_census"),
|
||||
permissions: [:debates, :create_proposals, :support_proposals, :vote_proposals] %>
|
||||
|
||||
<p>
|
||||
<a href="javascript:window.print();" class="button warning radius"><%= t("management.print_info") %></a>
|
||||
|
||||
Reference in New Issue
Block a user