2011-04-13 10:19:51 +00:00
|
|
|
<% content_for :secondary do %>
|
|
|
|
<ul class="list">
|
2011-02-01 02:46:26 +00:00
|
|
|
<li><%= link_to t('admin.new_user_role'), new_admin_user_role_model_path, :class => 'button positive' %></li>
|
2011-04-13 10:19:51 +00:00
|
|
|
</ul>
|
|
|
|
<% end -%>
|
|
|
|
|
2011-02-01 02:46:26 +00:00
|
|
|
<h1><%= t('admin.list_user_roles') %></h1>
|
2011-04-13 10:19:51 +00:00
|
|
|
|
|
|
|
<table>
|
|
|
|
<tr>
|
2011-02-01 02:46:26 +00:00
|
|
|
<th><%= t('admin.role') %></th>
|
2011-04-13 10:19:51 +00:00
|
|
|
<th><%= t('admin.key') %></th>
|
|
|
|
<th><%= t('admin.action') %></th>
|
|
|
|
</tr>
|
|
|
|
|
2011-02-01 02:46:26 +00:00
|
|
|
<% @user_role_models.each do |user_role_model| %>
|
2011-04-13 10:19:51 +00:00
|
|
|
<tr>
|
2011-02-01 02:46:26 +00:00
|
|
|
<td><%= user_role_model.i18n_variable[I18n.locale] %></td>
|
|
|
|
<td><%= user_role_model.key %></td>
|
2011-04-13 10:19:51 +00:00
|
|
|
<td>
|
2011-02-01 02:46:26 +00:00
|
|
|
<%= link_to t(:edit), edit_admin_user_role_model_path(user_role_model) %> |
|
|
|
|
<%= link_to t(:delete), admin_user_role_model_path(user_role_model), :confirm => t('sure?'), :method => :delete %>
|
2011-04-13 10:19:51 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
2011-02-01 02:46:26 +00:00
|
|
|
</table>
|