2006-12-16 15:15:31 +03:00
|
|
|
<div class="contextual">
|
2011-12-10 03:29:58 +04:00
|
|
|
<%= link_to l(:label_role_new), new_role_path, :class => 'icon icon-add' %>
|
2012-12-23 20:10:07 +04:00
|
|
|
<%= link_to l(:label_permissions_report), permissions_roles_path, :class => 'icon icon-summary' %>
|
2006-12-16 15:15:31 +03:00
|
|
|
</div>
|
|
|
|
|
2006-07-29 23:54:22 +04:00
|
|
|
<h2><%=l(:label_role_plural)%></h2>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2006-12-24 19:35:25 +03:00
|
|
|
<table class="list">
|
|
|
|
<thead><tr>
|
2006-07-29 23:54:22 +04:00
|
|
|
<th><%=l(:label_role)%></th>
|
2007-01-31 23:57:01 +03:00
|
|
|
<th><%=l(:button_sort)%></th>
|
2011-09-18 06:43:24 +04:00
|
|
|
<th></th>
|
2006-12-24 19:35:25 +03:00
|
|
|
</tr></thead>
|
|
|
|
<tbody>
|
2006-06-28 22:11:03 +04:00
|
|
|
<% for role in @roles %>
|
2006-07-09 20:30:01 +04:00
|
|
|
<tr class="<%= cycle("odd", "even") %>">
|
2013-11-16 11:48:27 +04:00
|
|
|
<td class="name"><%= content_tag(role.builtin? ? 'em' : 'span', link_to(h(role.name), edit_role_path(role))) %></td>
|
|
|
|
<td class="reorder">
|
2007-08-29 20:52:35 +04:00
|
|
|
<% unless role.builtin? %>
|
2011-12-10 03:29:58 +04:00
|
|
|
<%= reorder_links('role', {:action => 'update', :id => role}, :put) %>
|
2007-08-29 20:52:35 +04:00
|
|
|
<% end %>
|
2007-01-31 23:57:01 +03:00
|
|
|
</td>
|
2009-09-12 13:25:39 +04:00
|
|
|
<td class="buttons">
|
2012-09-03 21:04:28 +04:00
|
|
|
<%= link_to l(:button_copy), new_role_path(:copy => role), :class => 'icon icon-copy' %>
|
2012-07-07 18:36:49 +04:00
|
|
|
<%= delete_link role_path(role) unless role.builtin? %>
|
2008-03-17 23:02:51 +03:00
|
|
|
</td>
|
2006-06-28 22:11:03 +04:00
|
|
|
</tr>
|
|
|
|
<% end %>
|
2006-12-24 19:35:25 +03:00
|
|
|
</tbody>
|
2006-06-28 22:11:03 +04:00
|
|
|
</table>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
2007-12-29 14:36:30 +03:00
|
|
|
<p class="pagination"><%= pagination_links_full @role_pages %></p>
|
2007-04-08 00:27:19 +04:00
|
|
|
|
2008-01-03 01:41:53 +03:00
|
|
|
<% html_title(l(:label_role_plural)) -%>
|