Sha256: b133f94248a9e24295b7a46737cc7d0a284e30185a44703c21d9279015f5eb56

Contents?: true

Size: 685 Bytes

Versions: 1

Compression:

Stored size: 685 Bytes

Contents

<h2>Institution: <%= @institution.name %></h2>
<h3>Accounts:</h3>
<ul>
  <% @institution.users.each do |user| %>
    <li><%= user.user_key %>
      <% if can? :remove_user, Institution %>
        <%= button_to "Remove User", institution_management.institution_user_path(@institution, user), :method=>:delete, :class=>'btn btn-danger' %>
      <% end %>
    </li>
  <% end %>
</ul>
<h3>Add a new account:</h3>
<%= bootstrap_form_tag institution_management.institution_users_path(@institution) do %>
  <%= bootstrap_text_field_tag 'user_key', '', :label=>'User' %>
  <%= bootstrap_actions do %>
    <%= bootstrap_submit_tag "Add" %>
    <%= bootstrap_cancel_tag %>
  <% end %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bpl-institution-management-0.0.2 app/views/institutions/show.html.erb