To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / roles / index.html.erb @ 912:5e80956cc792
History | View | Annotate | Download (1.14 KB)
| 1 | 0:513646585e45 | Chris | <div class="contextual"> |
|---|---|---|---|
| 2 | <%= link_to l(:label_role_new), {:action => 'new'}, :class => 'icon icon-add' %>
|
||
| 3 | </div>
|
||
| 4 | |||
| 5 | <h2><%=l(:label_role_plural)%></h2> |
||
| 6 | |||
| 7 | <table class="list"> |
||
| 8 | <thead><tr> |
||
| 9 | <th><%=l(:label_role)%></th> |
||
| 10 | <th><%=l(:button_sort)%></th> |
||
| 11 | 909:cbb26bc654de | Chris | <th></th> |
| 12 | 0:513646585e45 | Chris | </tr></thead> |
| 13 | <tbody>
|
||
| 14 | <% for role in @roles %>
|
||
| 15 | <tr class="<%= cycle("odd", "even") %>"> |
||
| 16 | 909:cbb26bc654de | Chris | <td><%= content_tag(role.builtin? ? 'em' : 'span', link_to(h(role.name), :action => 'edit', :id => role)) %></td> |
| 17 | 0:513646585e45 | Chris | <td align="center" style="width:15%;"> |
| 18 | <% unless role.builtin? %>
|
||
| 19 | <%= reorder_links('role', {:action => 'edit', :id => role}) %>
|
||
| 20 | <% end %>
|
||
| 21 | </td>
|
||
| 22 | <td class="buttons"> |
||
| 23 | <%= link_to(l(:button_delete), { :action => 'destroy', :id => role },
|
||
| 24 | 909:cbb26bc654de | Chris | :method => :post,
|
| 25 | :confirm => l(:text_are_you_sure),
|
||
| 26 | :class => 'icon icon-del') unless role.builtin? %>
|
||
| 27 | 0:513646585e45 | Chris | </td>
|
| 28 | </tr>
|
||
| 29 | <% end %>
|
||
| 30 | </tbody>
|
||
| 31 | </table>
|
||
| 32 | |||
| 33 | <p class="pagination"><%= pagination_links_full @role_pages %></p> |
||
| 34 | |||
| 35 | <p><%= link_to l(:label_permissions_report), :action => 'report' %></p> |
||
| 36 | |||
| 37 | <% html_title(l(:label_role_plural)) -%> |