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/federal_subjects/index.html.erb

59 lines
1.7 KiB
Text

<div class="container">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item active" aria-current="page">
<%= FederalSubject.model_name.human count: 0 %>
</li>
</ol>
</nav>
<table class="table">
<thead>
<tr>
<th scope="col">
<%= FederalSubject.human_attribute_name :number %>
</th>
<th scope="col">
<%= FederalSubject.human_attribute_name :display_name %>
</th>
<th scope="col">
<%= FederalSubject.human_attribute_name :centre %>
</th>
<th scope="col">
<%= FederalSubject.human_attribute_name :timezone %>
</th>
<th scope="col">
<%= FederalSubject.human_attribute_name :regional_office %>
</th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
<% @federal_subjects.each do |federal_subject| %>
<tr>
<td><%= federal_subject.number %></td>
<td><%= federal_subject.display_name %></td>
<td><%= federal_subject.centre %></td>
<td><%= federal_subject.timezone %></td>
<td>
<% if federal_subject.regional_office.nil? %>
<%= translate :no %>
<% else %>
<%= translate :yes %>
<% end %>
</td>
<td>
<% if policy(federal_subject).show? %>
<%= link_to federal_subject,
role: :button,
class: 'btn btn-light btn-sm' do %>
<i class="far fa-eye"></i>
<% end %>
<% end %>
</td>
</tr>
<% end %>
</tbody>
</table>
</div>