% content_for(:sidebar) do %> <%= render 'spotlight/shared/exhibit_sidebar' %> <% end %> <%= configuration_page_title %> <%= bootstrap_form_for current_exhibit, url: spotlight.update_all_exhibit_roles_path(current_exhibit) do |f| %>
<%= t '.email' %> | <%= t '.role' %> | <%= t '.actions' %> | <%= f.fields_for :roles do |r| %> <% if r.object.new_record? %> <%= render partial: 'edit_fields', locals: {f: r} %>
---|---|---|
<%= cancel_link r.object, '#', class: 'btn btn-link', data: {behavior: 'cancel-edit' } %>
<%=f.submit nil, class: 'btn btn-primary'%>
|
||
<%= r.object.user.to_s %> <%= t('.invite_pending') %> | <%= r.object.role.humanize %> | <%= link_to "#", data: {behavior: 'edit-user', target: r.object.id } do %> <%= blacklight_icon('edit') %> <% end %> |
<%= f.submit action_label(r.object, :destroy), class: 'btn btn-danger', data: { behavior: 'destroy-user', target: r.object.id} %> <%= r.hidden_field :_destroy, data: {'destroy-for' => r.object.id} %> |
<%= cancel_link r.object, '#', class: 'btn btn-link', data: {behavior: 'cancel-edit' } %>
<%=f.submit nil, class: 'btn btn-primary'%>
|