Sha256: beb74c2ef7c7142139b7a2974b501fed1ee0f964eacd14adf69a46a5ff2345d9

Contents?: true

Size: 794 Bytes

Versions: 6

Compression:

Stored size: 794 Bytes

Contents

<h2><%= t('role-management.show.title') %> <%= @role.name %></h2>
<h3><% t('role-management.show.accounts') %></h3>
<ul>
  <% @role.users.each do |user| %>
    <li><%= user.user_key %>
      <% if can? :remove_user, Role %>
        <%= button_to t('role-management.show.remove'), role_management.role_user_path(@role, user), :method=>:delete, :class=>'btn btn-danger' %>
      <% end %>
    </li>
  <% end %>
</ul>
<h3><%= t('role-management.show.add_new_account') %></h3>
<%= bootstrap_form_tag url: role_management.role_users_path(@role) do |f| %>
    <%= f.text_field 'user_key', :label=>t('role-management.show.user') %>
    <%= f.submit t('role-management.show.add') %>
    <%= link_to t('role-management.show.cancel'), role_management.roles_path, :class => 'btn btn-default' %>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hydra-role-management-1.2.0 app/views/roles/show.html.erb
hydra-role-management-1.1.0 app/views/roles/show.html.erb
hydra-role-management-1.0.3 app/views/roles/show.html.erb
hydra-role-management-1.0.2 app/views/roles/show.html.erb
hydra-role-management-1.0.1 app/views/roles/show.html.erb
hydra-role-management-1.0.0 app/views/roles/show.html.erb