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

97 lines
2.4 KiB
Text
Raw Normal View History

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">
2018-11-30 01:20:51 -05:00
<dt class="col-lg-3">
2018-11-30 01:09:56 -05:00
<%= Passport.human_attribute_name :surname %>
</dt>
2018-11-30 01:20:51 -05:00
<dd class="col-lg-9">
2018-11-30 01:09:56 -05:00
<%= @passport.surname %>
</dd>
2018-11-30 01:20:51 -05:00
<dt class="col-lg-3">
2018-11-30 01:09:56 -05:00
<%= Passport.human_attribute_name :given_name %>
</dt>
2018-11-30 01:20:51 -05:00
<dd class="col-lg-9">
2018-11-30 01:09:56 -05:00
<%= @passport.given_name %>
</dd>
2018-11-30 01:20:51 -05:00
<dt class="col-lg-3">
2018-11-30 01:09:56 -05:00
<%= Passport.human_attribute_name :patronymic %>
</dt>
2018-11-30 01:20:51 -05:00
<dd class="col-lg-9">
2018-11-30 01:09:56 -05:00
<%= @passport.patronymic %>
</dd>
2018-11-30 01:20:51 -05:00
<dt class="col-lg-3">
2018-11-30 01:09:56 -05:00
<%= Passport.human_attribute_name :sex %>
</dt>
2018-11-30 01:20:51 -05:00
<dd class="col-lg-9">
2018-11-30 01:09:56 -05:00
<%= Passport.human_attribute_name "sex.#{@passport.sex}" %>
</dd>
2018-11-30 01:20:51 -05:00
<dt class="col-lg-3">
2018-11-30 01:09:56 -05:00
<%= Passport.human_attribute_name :date_of_birth %>
</dt>
2018-11-30 01:20:51 -05:00
<dd class="col-lg-9">
2018-11-30 01:09:56 -05:00
<%= localize @passport.date_of_birth %>
</dd>
2018-11-30 01:20:51 -05:00
<dt class="col-lg-3">
2018-11-30 01:09:56 -05:00
<%= Passport.human_attribute_name :place_of_birth %>
</dt>
2018-11-30 01:20:51 -05:00
<dd class="col-lg-9">
2018-11-30 01:09:56 -05:00
<%= @passport.place_of_birth %>
</dd>
2018-11-30 01:20:51 -05:00
<dt class="col-lg-3">
2018-11-30 01:09:56 -05:00
<%= Passport.human_attribute_name :series %>
</dt>
2018-11-30 01:20:51 -05:00
<dd class="col-lg-9">
2018-11-30 01:09:56 -05:00
<%= passport_series @passport.series %>
</dd>
2018-11-30 01:20:51 -05:00
<dt class="col-lg-3">
2018-11-30 01:09:56 -05:00
<%= Passport.human_attribute_name :number %>
</dt>
2018-11-30 01:20:51 -05:00
<dd class="col-lg-9">
2018-11-30 01:09:56 -05:00
<%= passport_number @passport.number %>
</dd>
2018-11-30 01:20:51 -05:00
<dt class="col-lg-3">
2018-11-30 01:09:56 -05:00
<%= Passport.human_attribute_name :issued_by %>
</dt>
2018-11-30 01:20:51 -05:00
<dd class="col-lg-9">
2018-11-30 01:09:56 -05:00
<%= @passport.issued_by %>
</dd>
2018-11-30 01:20:51 -05:00
<dt class="col-lg-3">
2018-11-30 01:09:56 -05:00
<%= Passport.human_attribute_name :unit_code %>
</dt>
2018-11-30 01:20:51 -05:00
<dd class="col-lg-9">
2018-11-30 01:09:56 -05:00
<%= @passport.unit_code %>
</dd>
2018-11-30 01:20:51 -05:00
<dt class="col-lg-3">
2018-11-30 01:09:56 -05:00
<%= Passport.human_attribute_name :date_of_issue %>
</dt>
2018-11-30 01:20:51 -05:00
<dd class="col-lg-9">
2018-11-30 01:09:56 -05:00
<%= 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>