-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
index.html.erb
44 lines (40 loc) · 1.4 KB
/
index.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<h2><%= t("admin.officials.index.title") %></h2>
<p><%= t("admin.officials.index.help") %></p>
<%= render "admin/shared/user_search", url: search_admin_officials_path %>
<% if @officials.any? %>
<h3 class="margin"><%= page_entries_info @officials %></h3>
<table>
<thead>
<th scope="col"><%= t("admin.officials.index.name") %></th>
<th scope="col"><%= t("admin.officials.index.official_position") %></th>
<th scope="col"><%= t("admin.officials.index.official_level") %></th>
<th scope="col" class="small-3"><%= t("admin.shared.actions") %></th>
</thead>
<tbody>
<% @officials.each do |official| %>
<tr>
<td>
<%= link_to official.name, edit_admin_official_path(official) %>
</td>
<td>
<span class="label level-<%= official.official_level %>">
<%= official.official_position %>
</span>
</td>
<td>
<%= t("admin.officials.level_#{official.official_level}") %>
</td>
<td>
<%= link_to t("admin.officials.search.edit_official"),
edit_admin_official_path(official), class: "button hollow expanded" %>
</td>
</tr>
<% end %>
</tbody>
</table>
<%= paginate @officials %>
<% else %>
<div class="callout primary">
<%= t("admin.officials.index.no_officials") %>
</div>
<% end %>