1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/app/views/passports/show.html.erb
2018-11-30 11:09:56 +05:00

96 lines
2.4 KiB
Text

<div class="container-fluid">
<div class="row">
<div class="col-md-6">
<h1>
<%= @passport.surname %>
<%= @passport.given_name %>
<%= @passport.patronymic %>
</h1>
<hr/>
<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>
</div>
<div class="col-md-6">
<%= image_tag url_for(@passport.image), class: 'img-fluid' %>
</div>
</div>
</div>