To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / roles / index.html.erb @ 1298:4f746d8966dd

History | View | Annotate | Download (1.03 KB)

1 0:513646585e45 Chris
<div class="contextual">
2 1115:433d4f72a19b Chris
<%= link_to l(:label_role_new), new_role_path, :class => 'icon icon-add' %>
3 1295:622f24f53b42 Chris
<%= link_to l(:label_permissions_report), permissions_roles_path, :class => 'icon icon-summary' %>
4 0:513646585e45 Chris
</div>
5
6
<h2><%=l(:label_role_plural)%></h2>
7
8
<table class="list">
9
  <thead><tr>
10
    <th><%=l(:label_role)%></th>
11
    <th><%=l(:button_sort)%></th>
12 909:cbb26bc654de Chris
  <th></th>
13 0:513646585e45 Chris
  </tr></thead>
14
  <tbody>
15
<% for role in @roles %>
16
  <tr class="<%= cycle("odd", "even") %>">
17 1115:433d4f72a19b Chris
  <td><%= content_tag(role.builtin? ? 'em' : 'span', link_to(h(role.name), edit_role_path(role))) %></td>
18 0:513646585e45 Chris
  <td align="center" style="width:15%;">
19
  <% unless role.builtin? %>
20 1115:433d4f72a19b Chris
    <%= reorder_links('role', {:action => 'update', :id => role}, :put) %>
21 0:513646585e45 Chris
  <% end %>
22
  </td>
23
  <td class="buttons">
24 1115:433d4f72a19b Chris
    <%= link_to l(:button_copy), new_role_path(:copy => role), :class => 'icon icon-copy' %>
25
    <%= delete_link role_path(role) unless role.builtin? %>
26 0:513646585e45 Chris
  </td>
27
  </tr>
28
<% end %>
29
  </tbody>
30
</table>
31
32
<p class="pagination"><%= pagination_links_full @role_pages %></p>
33
34
<% html_title(l(:label_role_plural)) -%>