Renaming of management validations
This commit is contained in:
@@ -4,8 +4,9 @@
|
||||
<%= link_to t("management.dashboard.index.title"), management_root_path %>
|
||||
</li>
|
||||
|
||||
<li <%= "class=active" if controller_name == "on_site_verifications" %>>
|
||||
<%= link_to management_on_site_verifications_path do %>
|
||||
<li <%= "class=active" if controller_name == "document_verifications" ||
|
||||
controller_name == "email_verifications" %>>
|
||||
<%= link_to management_document_verifications_path do %>
|
||||
<i class="icon-tag"></i>
|
||||
<%= t("management.menu.on_site_verifications") %>
|
||||
<% end %>
|
||||
|
||||
@@ -2,7 +2,10 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="small-12 medium-8 column">
|
||||
<%= form_for @verification_on_site, url: check_management_on_site_verifications_path do |f| %>
|
||||
<%= form_for(@document_verification,
|
||||
as: :document_verification,
|
||||
url: check_management_document_verifications_path) do |f| %>
|
||||
|
||||
<div class="small-12 medium-4">
|
||||
<%= f.select(:document_type,
|
||||
[[humanize_document_type("1"), 1],
|
||||
@@ -1,6 +1,6 @@
|
||||
<p class="account-info">
|
||||
<%= t("management.document_type_label") %> <strong><%= humanize_document_type(@verification_on_site.document_type) %></strong>
|
||||
<%= t("management.document_number") %> <strong><%= @verification_on_site.document_number %></strong>
|
||||
<%= t("management.document_type_label") %> <strong><%= humanize_document_type(@document_verification.document_type) %></strong>
|
||||
<%= t("management.document_number") %> <strong><%= @document_verification.document_number %></strong>
|
||||
</p>
|
||||
|
||||
<div class="alert-box alert radius">
|
||||
@@ -1,8 +1,8 @@
|
||||
<p class="account-info">
|
||||
<%= t("management.document_type_label") %> <strong><%= humanize_document_type(@verification_on_site.document_type) %></strong>
|
||||
<%= t("management.document_number") %> <strong><%= @verification_on_site.document_number %></strong>
|
||||
<%= t("management.username_label") %> <strong><%= @verification_on_site.user.username %></strong>
|
||||
<%= t("management.email_label") %> <strong><%= @verification_on_site.user.email %></strong>
|
||||
<%= t("management.document_type_label") %> <strong><%= humanize_document_type(@document_verification.document_type) %></strong>
|
||||
<%= t("management.document_number") %> <strong><%= @document_verification.document_number %></strong>
|
||||
<%= t("management.username_label") %> <strong><%= @document_verification.user.username %></strong>
|
||||
<%= t("management.email_label") %> <strong><%= @document_verification.user.email %></strong>
|
||||
</p>
|
||||
|
||||
<div class="alert-box success radius">
|
||||
@@ -20,7 +20,7 @@
|
||||
<li><i class="icon-x"></i> <%= t("management.users.user_permission_votes") %></li>
|
||||
</ul>
|
||||
|
||||
<%= form_for @verification_on_site, url: management_on_site_verifications_path do |f| %>
|
||||
<%= form_for @document_verification, url: management_on_site_verifications_path do |f| %>
|
||||
<%= f.hidden_field :document_type %>
|
||||
<%= f.hidden_field :document_number %>
|
||||
<%= f.submit t("management.users.verify"), class: "button success radius" %>
|
||||
@@ -1,8 +1,8 @@
|
||||
<p class="account-info">
|
||||
<%= t("management.document_type_label") %> <strong><%= humanize_document_type(@verification_on_site.document_type) %></strong>
|
||||
<%= t("management.document_number") %> <strong><%= @verification_on_site.document_number %></strong>
|
||||
<%= t("management.username_label") %> <strong><%= @verification_on_site.user.username %></strong>
|
||||
<%= t("management.email_label") %> <strong><%= @verification_on_site.user.email %></strong>
|
||||
<%= t("management.document_type_label") %> <strong><%= humanize_document_type(@document_verification.document_type) %></strong>
|
||||
<%= t("management.document_number") %> <strong><%= @document_verification.document_number %></strong>
|
||||
<%= t("management.username_label") %> <strong><%= @document_verification.user.username %></strong>
|
||||
<%= t("management.email_label") %> <strong><%= @document_verification.user.email %></strong>
|
||||
</p>
|
||||
|
||||
<div class="alert-box success radius">
|
||||
@@ -1,6 +1,6 @@
|
||||
<p class="account-info">
|
||||
<%= t("management.document_type_label") %> <strong><%= humanize_document_type(@verification_on_site_email.document_type) %></strong>
|
||||
<%= t("management.document_number") %> <strong><%= @verification_on_site_email.document_number %></strong>
|
||||
<%= t("management.document_type_label") %> <strong><%= humanize_document_type(@email_verification.document_type) %></strong>
|
||||
<%= t("management.document_number") %> <strong><%= @email_verification.document_number %></strong>
|
||||
</p>
|
||||
|
||||
<div class="alert-box success radius">
|
||||
@@ -13,7 +13,9 @@
|
||||
|
||||
<p><%= t("management.users.has_account_note") %></p>
|
||||
|
||||
<%= form_for @verification_on_site_email, url: management_on_site_verification_emails_path do |f| %>
|
||||
<%= 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') %>
|
||||
@@ -1,8 +1,8 @@
|
||||
<p class="account-info">
|
||||
<%= t("management.document_type_label") %> <strong><%= humanize_document_type(@verification_on_site_email.document_type) %></strong>
|
||||
<%= t("management.document_number") %> <strong><%= @verification_on_site_email.document_number %></strong>
|
||||
<%= t("management.username_label") %> <strong><%= @verification_on_site_email.user.username %></strong>
|
||||
<%= t("management.email_label") %> <strong><%= @verification_on_site_email.user.email %></strong>
|
||||
<%= t("management.document_type_label") %> <strong><%= humanize_document_type(@email_verification.document_type) %></strong>
|
||||
<%= t("management.document_number") %> <strong><%= @email_verification.document_number %></strong>
|
||||
<%= t("management.username_label") %> <strong><%= @email_verification.user.username %></strong>
|
||||
<%= t("management.email_label") %> <strong><%= @email_verification.user.email %></strong>
|
||||
</p>
|
||||
|
||||
<div class="alert-box success radius">
|
||||
@@ -1,25 +0,0 @@
|
||||
<p class="account-info">
|
||||
<%= t("management.document_type_label") %> <strong><%= humanize_document_type(@verification_on_site.document_type) %></strong>
|
||||
<%= t("management.document_number") %> <strong><%= @verification_on_site.document_number %></strong>
|
||||
<%= t("management.username_label") %> <strong><%= @verification_on_site.user.username %></strong>
|
||||
<%= t("management.email_label") %> <strong><%= @verification_on_site.user.email %></strong>
|
||||
</p>
|
||||
|
||||
<div class="alert-box success radius">
|
||||
<%= t("management.users.already_verified") %>
|
||||
</div>
|
||||
|
||||
<div class="user-permissions">
|
||||
|
||||
<p><%= t("management.users.census_success_info") %></p>
|
||||
|
||||
<ul>
|
||||
<li><i class="icon-check"></i> <%= t("management.users.user_permission_debates") %></li>
|
||||
<li><i class="icon-check"></i> <%= t("management.users.user_permission_proposal") %></li>
|
||||
<li><i class="icon-check"></i> <%= t("management.users.user_permission_support_proposal") %></li>
|
||||
<li><i class="icon-check"></i> <%= t("management.users.user_permission_votes") %></li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
<a href="javascript:window.print();" class="button warning radius"><%= t("management.print_info") %></a>
|
||||
Reference in New Issue
Block a user