2006-12-16 12:15:31 +00:00
|
|
|
<div class="contextual">
|
2011-12-09 23:29:58 +00:00
|
|
|
<%= link_to l(:label_role_new), new_role_path, :class => 'icon icon-add' %>
|
2006-12-16 12:15:31 +00:00
|
|
|
</div>
|
|
|
|
|
2006-07-29 19:54:22 +00:00
|
|
|
<h2><%=l(:label_role_plural)%></h2>
|
2006-06-28 18:11:03 +00:00
|
|
|
|
2006-12-24 16:35:25 +00:00
|
|
|
<table class="list">
|
|
|
|
<thead><tr>
|
2006-07-29 19:54:22 +00:00
|
|
|
<th><%=l(:label_role)%></th>
|
2007-01-31 20:57:01 +00:00
|
|
|
<th><%=l(:button_sort)%></th>
|
2011-09-18 02:43:24 +00:00
|
|
|
<th></th>
|
2006-12-24 16:35:25 +00:00
|
|
|
</tr></thead>
|
|
|
|
<tbody>
|
2006-06-28 18:11:03 +00:00
|
|
|
<% for role in @roles %>
|
2006-07-09 16:30:01 +00:00
|
|
|
<tr class="<%= cycle("odd", "even") %>">
|
2011-12-09 23:29:58 +00:00
|
|
|
<td><%= content_tag(role.builtin? ? 'em' : 'span', link_to(h(role.name), edit_role_path(role))) %></td>
|
2007-04-02 19:27:05 +00:00
|
|
|
<td align="center" style="width:15%;">
|
2007-08-29 16:52:35 +00:00
|
|
|
<% unless role.builtin? %>
|
2011-12-09 23:29:58 +00:00
|
|
|
<%= reorder_links('role', {:action => 'update', :id => role}, :put) %>
|
2007-08-29 16:52:35 +00:00
|
|
|
<% end %>
|
2007-01-31 20:57:01 +00:00
|
|
|
</td>
|
2009-09-12 09:25:39 +00:00
|
|
|
<td class="buttons">
|
2011-12-09 23:29:58 +00:00
|
|
|
<%= link_to(l(:button_delete), role_path(role),
|
|
|
|
:method => :delete,
|
2011-09-18 02:43:24 +00:00
|
|
|
:confirm => l(:text_are_you_sure),
|
|
|
|
:class => 'icon icon-del') unless role.builtin? %>
|
2008-03-17 20:02:51 +00:00
|
|
|
</td>
|
2006-06-28 18:11:03 +00:00
|
|
|
</tr>
|
|
|
|
<% end %>
|
2006-12-24 16:35:25 +00:00
|
|
|
</tbody>
|
2006-06-28 18:11:03 +00:00
|
|
|
</table>
|
2007-03-12 17:59:02 +00:00
|
|
|
|
2007-12-29 11:36:30 +00:00
|
|
|
<p class="pagination"><%= pagination_links_full @role_pages %></p>
|
2007-04-07 20:27:19 +00:00
|
|
|
|
2011-12-09 23:29:58 +00:00
|
|
|
<p><%= link_to l(:label_permissions_report), :action => 'permissions' %></p>
|
2007-12-07 18:42:40 +00:00
|
|
|
|
2008-01-02 22:41:53 +00:00
|
|
|
<% html_title(l(:label_role_plural)) -%>
|