2019-01-31 17:38:06 -05:00
|
|
|
<div class="container">
|
2019-08-15 03:57:17 -04:00
|
|
|
<%= nav_breadcrumb FederalSubject.model_name.human count: 0 %>
|
2019-07-26 00:46:01 -04:00
|
|
|
|
2019-01-31 17:38:06 -05:00
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2019-07-19 23:12:30 -04:00
|
|
|
<th scope="col">
|
|
|
|
<%= FederalSubject.human_attribute_name :number %>
|
|
|
|
</th>
|
2019-03-24 16:52:10 -04:00
|
|
|
<th scope="col">
|
2019-07-18 15:11:33 -04:00
|
|
|
<%= FederalSubject.human_attribute_name :display_name %>
|
2019-03-24 17:10:10 -04:00
|
|
|
</th>
|
2019-07-22 05:14:14 -04:00
|
|
|
<th scope="col">
|
|
|
|
<%= FederalSubject.human_attribute_name :centre %>
|
|
|
|
</th>
|
2019-07-19 23:12:30 -04:00
|
|
|
<th scope="col">
|
|
|
|
<%= FederalSubject.human_attribute_name :timezone %>
|
|
|
|
</th>
|
2019-08-11 11:11:38 -04:00
|
|
|
<th scope="col">
|
|
|
|
<%= FederalSubject.human_attribute_name :regional_office %>
|
|
|
|
</th>
|
2019-01-31 17:38:06 -05:00
|
|
|
<th scope="col"></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
2019-06-23 11:59:44 -04:00
|
|
|
<% @federal_subjects.each do |federal_subject| %>
|
2019-01-31 17:38:06 -05:00
|
|
|
<tr>
|
2019-07-19 23:12:30 -04:00
|
|
|
<td><%= federal_subject.number %></td>
|
2019-07-18 15:11:33 -04:00
|
|
|
<td><%= federal_subject.display_name %></td>
|
2019-07-22 05:14:14 -04:00
|
|
|
<td><%= federal_subject.centre %></td>
|
2019-07-19 23:12:30 -04:00
|
|
|
<td><%= federal_subject.timezone %></td>
|
2019-08-11 11:11:38 -04:00
|
|
|
<td>
|
|
|
|
<% if federal_subject.regional_office.nil? %>
|
|
|
|
<%= translate :no %>
|
|
|
|
<% else %>
|
|
|
|
<%= translate :yes %>
|
|
|
|
<% end %>
|
|
|
|
</td>
|
2019-01-31 17:38:06 -05:00
|
|
|
<td>
|
2019-06-23 11:59:44 -04:00
|
|
|
<% if policy(federal_subject).show? %>
|
|
|
|
<%= link_to federal_subject,
|
2019-02-08 03:35:17 -05:00
|
|
|
role: :button,
|
|
|
|
class: 'btn btn-light btn-sm' do %>
|
2019-01-31 17:38:06 -05:00
|
|
|
<i class="far fa-eye"></i>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|