index.html.erb
34 lines
| 1.0 KiB
| text/plain
|
TextLexer
|
r90 | <div class="contextual"> | ||
|
r8025 | <%= link_to l(:label_role_new), new_role_path, :class => 'icon icon-add' %> | ||
|
r10099 | <%= link_to l(:label_permissions_report), {:action => 'permissions'}, :class => 'icon icon-summary' %> | ||
|
r90 | </div> | ||
|
r12 | <h2><%=l(:label_role_plural)%></h2> | ||
|
r2 | |||
|
r105 | <table class="list"> | ||
<thead><tr> | ||||
|
r12 | <th><%=l(:label_role)%></th> | ||
|
r205 | <th><%=l(:button_sort)%></th> | ||
|
r7272 | <th></th> | ||
|
r105 | </tr></thead> | ||
<tbody> | ||||
|
r2 | <% for role in @roles %> | ||
|
r5 | <tr class="<%= cycle("odd", "even") %>"> | ||
|
r8025 | <td><%= content_tag(role.builtin? ? 'em' : 'span', link_to(h(role.name), edit_role_path(role))) %></td> | ||
|
r400 | <td align="center" style="width:15%;"> | ||
|
r663 | <% unless role.builtin? %> | ||
|
r8025 | <%= reorder_links('role', {:action => 'update', :id => role}, :put) %> | ||
|
r663 | <% end %> | ||
|
r205 | </td> | ||
|
r2758 | <td class="buttons"> | ||
|
r10102 | <%= link_to l(:button_copy), new_role_path(:copy => role), :class => 'icon icon-copy' %> | ||
|
r9754 | <%= delete_link role_path(role) unless role.builtin? %> | ||
|
r1254 | </td> | ||
|
r2 | </tr> | ||
<% end %> | ||||
|
r105 | </tbody> | ||
|
r2 | </table> | ||
|
r330 | |||
|
r1013 | <p class="pagination"><%= pagination_links_full @role_pages %></p> | ||
|
r430 | |||
|
r1019 | <% html_title(l(:label_role_plural)) -%> | ||