Sha256: 1ef605f50f9c742ff9c900c1344a155e2456838b4e18e38401d1d5ebf8b21ac8
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
<h2>Institution:</h2> <%= bootstrap_form_for @institution, :url=>institution_management.institution_path(@institution) do |f| %> <%= f.text_field :name, :label=> 'Institution name' %> <%= f.actions do %> <%= f.submit "Update" %> <% end %> <% end %> <% if can? :destroy, Institution %> <%= button_to "Delete", institution_management.institution_path(@institution), :method=>:delete, :class=>'btn btn-danger' %> <% end %> <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/edit.html.erb |