We had the same texts four times, with slight variations in the case of the management section. We're unifying them under the "verification" i18n namespace, since the texts are about actions which can be done depending on whether users are verified or not. Note the names of the i18n keys aren't very consistent, since we use "debates" in plural but "proposal" in singular. We're leaving it like this so existing translations aren't affected.
31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
<h2><%= t("management.users.create_user_info") %></h2>
|
|
|
|
<div class="small-12 medium-6 column">
|
|
|
|
<div class="verification account">
|
|
<%= form_for @user, url: management_users_path do |f| %>
|
|
<%= f.hidden_field :document_type %>
|
|
<%= f.hidden_field :document_number %>
|
|
<%= f.text_field :username,
|
|
label: t("management.username_label") %>
|
|
<%= f.text_field :email,
|
|
label: t("management.users.email_optional_label") %>
|
|
<div class="date-of-birth">
|
|
<%= f.date_select :date_of_birth,
|
|
prompt: true,
|
|
start_year: 1900, end_year: 16.years.ago.year,
|
|
label: t("management.date_of_birth") %>
|
|
</div>
|
|
<%= f.submit t("management.users.create_user_submit"), class: "button success" %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="small-12 medium-6 column">
|
|
<div class="callout">
|
|
<%= render "management/user_permissions",
|
|
message: t("management.document_verifications.in_census_has_following_permissions"),
|
|
permissions: [:debates, :proposal, :support_proposal, :votes] %>
|
|
</div>
|
|
</div>
|