list.rhtml
37 lines
| 1.1 KiB
| text/html+ruby
|
RhtmlLexer
|
r90 | <div class="contextual"> | ||
|
r154 | <%= link_to l(:label_role_new), {:action => 'new'}, :class => 'icon icon-add' %> | ||
|
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> | ||
|
r2 | <th></th> | ||
|
r105 | </tr></thead> | ||
<tbody> | ||||
|
r2 | <% for role in @roles %> | ||
|
r5 | <tr class="<%= cycle("odd", "even") %>"> | ||
|
r663 | <td><%= content_tag(role.builtin? ? 'em' : 'span', link_to(role.name, :action => 'edit', :id => role)) %></td> | ||
|
r400 | <td align="center" style="width:15%;"> | ||
|
r663 | <% unless role.builtin? %> | ||
|
r2478 | <%= reorder_links('role', {:action => 'edit', :id => role}) %> | ||
|
r663 | <% end %> | ||
|
r205 | </td> | ||
|
r2758 | <td class="buttons"> | ||
<%= link_to(l(:button_delete), { :action => 'destroy', :id => role }, | ||||
:method => :post, | ||||
:confirm => l(:text_are_you_sure), | ||||
:class => 'icon icon-del') unless role.builtin? %> | ||||
|
r1254 | </td> | ||
|
r2 | </tr> | ||
<% end %> | ||||
|
r105 | </tbody> | ||
|
r2 | </table> | ||
|
r330 | |||
|
r1013 | <p class="pagination"><%= pagination_links_full @role_pages %></p> | ||
|
r430 | |||
<p><%= link_to l(:label_permissions_report), :action => 'report' %></p> | ||||
|
r951 | |||
|
r1019 | <% html_title(l(:label_role_plural)) -%> | ||