You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

list.rhtml 1.1KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <div class="contextual">
  2. <%= link_to l(:label_role_new), {:action => 'new'}, :class => 'icon icon-add' %>
  3. </div>
  4. <h2><%=l(:label_role_plural)%></h2>
  5. <table class="list">
  6. <thead><tr>
  7. <th><%=l(:label_role)%></th>
  8. <th><%=l(:button_sort)%></th>
  9. <th></th>
  10. </tr></thead>
  11. <tbody>
  12. <% for role in @roles %>
  13. <tr class="<%= cycle("odd", "even") %>">
  14. <td><%= content_tag(role.builtin? ? 'em' : 'span', link_to(role.name, :action => 'edit', :id => role)) %></td>
  15. <td align="center" style="width:15%;">
  16. <% unless role.builtin? %>
  17. <%= reorder_links('role', {:action => 'edit', :id => role}) %>
  18. <% end %>
  19. </td>
  20. <td class="buttons">
  21. <%= link_to(l(:button_delete), { :action => 'destroy', :id => role },
  22. :method => :post,
  23. :confirm => l(:text_are_you_sure),
  24. :class => 'icon icon-del') unless role.builtin? %>
  25. </td>
  26. </tr>
  27. <% end %>
  28. </tbody>
  29. </table>
  30. <p class="pagination"><%= pagination_links_full @role_pages %></p>
  31. <p><%= link_to l(:label_permissions_report), :action => 'report' %></p>
  32. <% html_title(l(:label_role_plural)) -%>