Sha256: dcf9775b819f27c379a99177947e38e7596d5ff7b760e3df97744bb21b7efc3e

Contents?: true

Size: 817 Bytes

Versions: 10

Compression:

Stored size: 817 Bytes

Contents

<% @page_name = 'Roles' %>

<%= content_for :data_controls do %>
  <%= link_to 'New Role', new_admin_role_path, :class => 'btn btn-primary' %>
<% end %>

<% content_for :detail do %>
  <table class="admin-table data-table">
    <thead>
      <tr>
        <th>Name</th>
        <th># Users</th>
        <th></th>
      </tr>
    </thead>
    <tbody>
      <% @roles.each do |role| %>
        <tr>
          <td><%= role.name %></td>
          <td><%= role.users.count %></td>
          <td align="right">
            <%= link_to 'Edit', edit_admin_role_path(role), :class => 'btn btn-mini' %>
            <%= link_to 'Delete', admin_role_path(role), :method => :delete, :confirm => 'Are you sure?', :class => 'btn btn-mini btn-danger' %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
<% end %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
tb_core-1.1.10 app/views/admin/roles/index.html.erb
tb_core-1.1.9 app/views/admin/roles/index.html.erb
tb_core-1.1.8 app/views/admin/roles/index.html.erb
tb_core-1.1.7 app/views/admin/roles/index.html.erb
tb_core-1.1.6 app/views/admin/roles/index.html.erb
tb_core-1.1.5 app/views/admin/roles/index.html.erb
tb_core-1.1.4 app/views/admin/roles/index.html.erb
tb_core-1.1.2 app/views/admin/roles/index.html.erb
tb_core-1.1.1 app/views/admin/roles/index.html.erb
tb_core-1.1.0 app/views/admin/roles/index.html.erb