Files
nairobi/app/views/management/document_verifications/index.html.erb
Javi Martín 9ddbd01f91 Use active model translations for labels
The same way we did for Active Record, but this time we do it for models
not inheriting fom Active Record.
2019-10-07 01:56:24 +02:00

35 lines
1.2 KiB
Plaintext

<h2><%= t("management.document_verifications.title") %></h2>
<div class="small-12 medium-8">
<%= form_for(@document_verification,
as: :document_verification,
url: check_management_document_verifications_path) do |f| %>
<div class="small-12 medium-5">
<%= f.select(:document_type,
[[humanize_document_type("1"), 1],
[humanize_document_type("2"), 2],
[humanize_document_type("3"), 3]]) %>
</div>
<div class="small-12 medium-5">
<%= f.text_field :document_number %>
</div>
<% if Setting.force_presence_date_of_birth? %>
<div class="date-of-birth small-12 medium-5">
<%= f.date_select :date_of_birth,
prompt: true,
start_year: 1900, end_year: minimum_required_age.years.ago.year %>
</div>
<% end %>
<% if Setting.force_presence_postal_code? %>
<div class="small-12 medium-5">
<%= f.text_field :postal_code, aria: { describedby: "postal-code-help-text" } %>
</div>
<% end %>
<%= f.submit t("management.check"), class: "button" %>
<% end %>
</div>