index.html.erb
30 lines
| 1020 B
| text/plain
|
TextLexer
|
r90 | <div class="contextual"> | |
|
r8025 | <%= link_to l(:label_role_new), new_role_path, :class => 'icon icon-add' %> | |
|
r10848 | <%= link_to l(:label_permissions_report), permissions_roles_path, :class => 'icon icon-summary' %> | |
|
r90 | </div> | |
|
r12 | <h2><%=l(:label_role_plural)%></h2> | |
|
r2 | ||
|
r14954 | <table class="list roles"> | |
|
r105 | <thead><tr> | |
|
r12 | <th><%=l(:label_role)%></th> | |
|
r7272 | <th></th> | |
|
r105 | </tr></thead> | |
<tbody> | |||
|
r2 | <% for role in @roles %> | |
|
r14954 | <tr class="<%= cycle("odd", "even") %> <%= role.builtin? ? "builtin" : "givable" %>"> | |
|
r13661 | <td class="name"><%= content_tag(role.builtin? ? 'em' : 'span', link_to(role.name, edit_role_path(role))) %></td> | |
|
r2758 | <td class="buttons"> | |
|
r14954 | <%= reorder_handle(role) unless role.builtin? %> | |
|
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 | ||
|
r1019 | <% html_title(l(:label_role_plural)) -%> | |
|
r14954 | ||
<%= javascript_tag do %> | |||
$(function() { $("table.roles tbody").positionedItems({items: ".givable"}); }); | |||
<% end %> |