2018-11-29 22:10:33 -05:00
|
|
|
<div class="container-fluid">
|
2018-11-30 01:19:38 -05:00
|
|
|
<h1>
|
|
|
|
<%= @passport.surname %>
|
|
|
|
<%= @passport.given_name %>
|
|
|
|
<%= @passport.patronymic %>
|
|
|
|
</h1>
|
2018-11-30 01:09:56 -05:00
|
|
|
|
2018-11-30 01:19:38 -05:00
|
|
|
<hr/>
|
2018-11-30 01:09:56 -05:00
|
|
|
|
2018-11-30 01:19:38 -05:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6">
|
2018-11-30 01:09:56 -05:00
|
|
|
<dl class="row">
|
|
|
|
<dt class="col-sm-3">
|
|
|
|
<%= Passport.human_attribute_name :surname %>
|
|
|
|
</dt>
|
|
|
|
<dd class="col-sm-9">
|
|
|
|
<%= @passport.surname %>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt class="col-sm-3">
|
|
|
|
<%= Passport.human_attribute_name :given_name %>
|
|
|
|
</dt>
|
|
|
|
<dd class="col-sm-9">
|
|
|
|
<%= @passport.given_name %>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt class="col-sm-3">
|
|
|
|
<%= Passport.human_attribute_name :patronymic %>
|
|
|
|
</dt>
|
|
|
|
<dd class="col-sm-9">
|
|
|
|
<%= @passport.patronymic %>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt class="col-sm-3">
|
|
|
|
<%= Passport.human_attribute_name :sex %>
|
|
|
|
</dt>
|
|
|
|
<dd class="col-sm-9">
|
|
|
|
<%= Passport.human_attribute_name "sex.#{@passport.sex}" %>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt class="col-sm-3">
|
|
|
|
<%= Passport.human_attribute_name :date_of_birth %>
|
|
|
|
</dt>
|
|
|
|
<dd class="col-sm-9">
|
|
|
|
<%= localize @passport.date_of_birth %>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt class="col-sm-3">
|
|
|
|
<%= Passport.human_attribute_name :place_of_birth %>
|
|
|
|
</dt>
|
|
|
|
<dd class="col-sm-9">
|
|
|
|
<%= @passport.place_of_birth %>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt class="col-sm-3">
|
|
|
|
<%= Passport.human_attribute_name :series %>
|
|
|
|
</dt>
|
|
|
|
<dd class="col-sm-9">
|
|
|
|
<%= passport_series @passport.series %>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt class="col-sm-3">
|
|
|
|
<%= Passport.human_attribute_name :number %>
|
|
|
|
</dt>
|
|
|
|
<dd class="col-sm-9">
|
|
|
|
<%= passport_number @passport.number %>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt class="col-sm-3">
|
|
|
|
<%= Passport.human_attribute_name :issued_by %>
|
|
|
|
</dt>
|
|
|
|
<dd class="col-sm-9">
|
|
|
|
<%= @passport.issued_by %>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt class="col-sm-3">
|
|
|
|
<%= Passport.human_attribute_name :unit_code %>
|
|
|
|
</dt>
|
|
|
|
<dd class="col-sm-9">
|
|
|
|
<%= @passport.unit_code %>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt class="col-sm-3">
|
|
|
|
<%= Passport.human_attribute_name :date_of_issue %>
|
|
|
|
</dt>
|
|
|
|
<dd class="col-sm-9">
|
|
|
|
<%= localize @passport.date_of_issue %>
|
|
|
|
</dd>
|
|
|
|
</dl>
|
2018-11-29 22:10:33 -05:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-6">
|
2018-11-30 00:49:51 -05:00
|
|
|
<%= image_tag url_for(@passport.image), class: 'img-fluid' %>
|
2018-11-29 22:10:33 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-11-29 21:34:46 -05:00
|
|
|
</div>
|