<h1>Listing roles</h1>

<table>
  <thead>
    <tr>
      <th>Role group</th>
      <th>Permissions</th>
      <th>Restrictions</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @roles.each do |role| %>
      <tr>
        <td><%= role.role_group %></td>
        <td><%= role.permissions %></td>
        <td><%= role.restrictions %></td>
        <td><%= link_to 'Show', role %></td>
        <td><%= link_to 'Edit', edit_role_path(role) %></td>
        <td><%= link_to 'Destroy', role, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to 'New Role', new_role_path %>