This repository has been archived on 2023-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
2020-04-10 10:33:29 +00:00
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th scope="col">
|
|
|
|
<%= Passport.human_attribute_name :series %>
|
|
|
|
</th>
|
|
|
|
<th scope="col">
|
|
|
|
<%= Passport.human_attribute_name :number %>
|
|
|
|
</th>
|
|
|
|
<th scope="col">
|
|
|
|
<%= Passport.human_attribute_name :unit_code %>
|
|
|
|
</th>
|
|
|
|
<th scope="col">
|
|
|
|
<%= Passport.human_attribute_name :date_of_issue %>
|
|
|
|
</th>
|
|
|
|
<th scope="col"></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
<% passports.each do |passport| %>
|
|
|
|
<tr>
|
|
|
|
<td><%= passport.series %></td>
|
|
|
|
<td><%= passport.number %></td>
|
|
|
|
<td><%= passport.unit_code %></td>
|
|
|
|
<td><%= passport.date_of_issue %></td>
|
|
|
|
<td>
|
|
|
|
<% if policy([:settings, passport]).show? %>
|
2020-04-10 10:54:31 +00:00
|
|
|
<%= open_action [:settings, passport] %>
|
2020-04-10 10:33:29 +00:00
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|