Sha256: ffc1610707953731b47815c215e4bff41a3cba4dd55895e3f2cd70600fb4744c

Contents?: true

Size: 609 Bytes

Versions: 2

Compression:

Stored size: 609 Bytes

Contents

<h2>Role: <%= @role.name %></h2>
<h3>Accounts:</h3>
<ul>
  <% @role.users.each do |user| %>
    <li><%= user.user_key %>
      <% if can? :remove_user, Role %>
        <%= button_to "Remove User", role_management.role_user_path(@role, user), :method=>:delete, :class=>'btn btn-danger' %>
      <% end %>
    </li>
  <% end %>
</ul>
<h3>Add a new account:</h3>
<%= bootstrap_form_tag url: role_management.role_users_path(@role) do |f| %>
    <%= f.text_field 'user_key', :label=>'User' %>
    <%= f.submit "Add" %>
    <%= link_to "Cancel", role_management.roles_path, :class => 'btn btn-default' %>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hydra-role-management-0.2.2 app/views/roles/show.html.erb
hydra-role-management-0.2.1 app/views/roles/show.html.erb