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.

index.html.erb 992B

12345678910111213141516171819202122232425262728293031
  1. <div class="contextual">
  2. <%= link_to l(:label_role_new), new_role_path, :class => 'icon icon-add' %>
  3. <%= link_to l(:label_permissions_report), permissions_roles_path, :class => 'icon icon-summary' %>
  4. </div>
  5. <h2><%=l(:label_role_plural)%></h2>
  6. <table class="list roles">
  7. <thead><tr>
  8. <th><%=l(:label_role)%></th>
  9. <th></th>
  10. </tr></thead>
  11. <tbody>
  12. <% for role in @roles %>
  13. <tr class="<%= role.builtin? ? "builtin" : "givable" %>">
  14. <td class="name"><%= content_tag(role.builtin? ? 'em' : 'span', link_to(role.name, edit_role_path(role))) %></td>
  15. <td class="buttons">
  16. <%= reorder_handle(role) unless role.builtin? %>
  17. <%= link_to l(:button_copy), new_role_path(:copy => role), :class => 'icon icon-copy' %>
  18. <%= delete_link role_path(role) unless role.builtin? %>
  19. </td>
  20. </tr>
  21. <% end %>
  22. </tbody>
  23. </table>
  24. <% html_title(l(:label_role_plural)) -%>
  25. <%= javascript_tag do %>
  26. $(function() { $("table.roles tbody").positionedItems({items: ".givable"}); });
  27. <% end %>