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

42 lines
1.2 KiB
Text
Raw Normal View History

2019-01-31 17:38:06 -05:00
<div class="container">
<table class="table">
<thead>
<tr>
<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>
<th scope="col">
<%= FederalSubject.human_attribute_name :timezone %>
</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>
<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>
<td><%= federal_subject.timezone %></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>