list.rhtml
29 lines
| 1.4 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") %>"> | |
|
r2 | <td><%= link_to role.name, :action => 'edit', :id => role %></td> | |
|
r400 | <td align="center" style="width:15%;"> | |
|
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) %> | |||
</td> | |||
|
r400 | <td align="center" style="width:10%;"> | |
|
r330 | <%= button_to l(:button_delete), { :action => 'destroy', :id => role }, :confirm => l(:text_are_you_sure), :class => "button-small" %> | |
|
r2 | </tr> | |
<% end %> | |||
|
r105 | </tbody> | |
|
r2 | </table> | |
|
r330 | ||
|
r90 | <%= pagination_links_full @role_pages %> |