96 lines
2.4 KiB
Text
96 lines
2.4 KiB
Text
<div class="container-fluid">
|
|
<h1>
|
|
<%= @passport.surname %>
|
|
<%= @passport.given_name %>
|
|
<%= @passport.patronymic %>
|
|
</h1>
|
|
|
|
<hr/>
|
|
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<dl class="row">
|
|
<dt class="col-lg-4">
|
|
<%= Passport.human_attribute_name :surname %>
|
|
</dt>
|
|
<dd class="col-lg-8">
|
|
<%= @passport.surname %>
|
|
</dd>
|
|
|
|
<dt class="col-lg-4">
|
|
<%= Passport.human_attribute_name :given_name %>
|
|
</dt>
|
|
<dd class="col-lg-8">
|
|
<%= @passport.given_name %>
|
|
</dd>
|
|
|
|
<dt class="col-lg-4">
|
|
<%= Passport.human_attribute_name :patronymic %>
|
|
</dt>
|
|
<dd class="col-lg-8">
|
|
<%= @passport.patronymic %>
|
|
</dd>
|
|
|
|
<dt class="col-lg-4">
|
|
<%= Passport.human_attribute_name :sex %>
|
|
</dt>
|
|
<dd class="col-lg-8">
|
|
<%= Passport.human_attribute_name "sex.#{@passport.sex}" %>
|
|
</dd>
|
|
|
|
<dt class="col-lg-4">
|
|
<%= Passport.human_attribute_name :date_of_birth %>
|
|
</dt>
|
|
<dd class="col-lg-8">
|
|
<%= localize @passport.date_of_birth %>
|
|
</dd>
|
|
|
|
<dt class="col-lg-4">
|
|
<%= Passport.human_attribute_name :place_of_birth %>
|
|
</dt>
|
|
<dd class="col-lg-8">
|
|
<%= @passport.place_of_birth %>
|
|
</dd>
|
|
|
|
<dt class="col-lg-4">
|
|
<%= Passport.human_attribute_name :series %>
|
|
</dt>
|
|
<dd class="col-lg-8">
|
|
<%= passport_series @passport.series %>
|
|
</dd>
|
|
|
|
<dt class="col-lg-4">
|
|
<%= Passport.human_attribute_name :number %>
|
|
</dt>
|
|
<dd class="col-lg-8">
|
|
<%= passport_number @passport.number %>
|
|
</dd>
|
|
|
|
<dt class="col-lg-4">
|
|
<%= Passport.human_attribute_name :issued_by %>
|
|
</dt>
|
|
<dd class="col-lg-8">
|
|
<%= @passport.issued_by %>
|
|
</dd>
|
|
|
|
<dt class="col-lg-4">
|
|
<%= Passport.human_attribute_name :unit_code %>
|
|
</dt>
|
|
<dd class="col-lg-8">
|
|
<%= @passport.unit_code %>
|
|
</dd>
|
|
|
|
<dt class="col-lg-4">
|
|
<%= Passport.human_attribute_name :date_of_issue %>
|
|
</dt>
|
|
<dd class="col-lg-8">
|
|
<%= localize @passport.date_of_issue %>
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
<%= image_tag url_for(@passport.image), class: 'img-fluid' %>
|
|
</div>
|
|
</div>
|
|
</div>
|