list.rhtml
34 lines
| 1.6 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? %> | ||
|
r205 | <%= link_to image_tag('2uparrow.png', :alt => l(:label_sort_highest)), {:action => 'move', :id => role, :position => 'highest'}, :method => :post, :title => l(:label_sort_highest) %> | ||
<%= link_to image_tag('1uparrow.png', :alt => l(:label_sort_higher)), {:action => 'move', :id => role, :position => 'higher'}, :method => :post, :title => l(:label_sort_higher) %> - | ||||
<%= link_to image_tag('1downarrow.png', :alt => l(:label_sort_lower)), {:action => 'move', :id => role, :position => 'lower'}, :method => :post, :title => l(:label_sort_lower) %> | ||||
<%= link_to image_tag('2downarrow.png', :alt => l(:label_sort_lowest)), {:action => 'move', :id => role, :position => 'lowest'}, :method => :post, :title => l(:label_sort_lowest) %> | ||||
|
r663 | <% end %> | ||
|
r205 | </td> | ||
|
r400 | <td align="center" style="width:10%;"> | ||
|
r736 | <%= button_to(l(:button_delete), { :action => 'destroy', :id => role }, :confirm => l(:text_are_you_sure), :class => "button-small", :disabled => role.builtin? ) %> | ||
|
r2 | </tr> | ||
<% end %> | ||||
|
r105 | </tbody> | ||
|
r2 | </table> | ||
|
r330 | |||
|
r430 | <p><%= pagination_links_full @role_pages %></p> | ||
<p><%= link_to l(:label_permissions_report), :action => 'report' %></p> | ||||