<% 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| %> <%= f.fields_for :roles do |r| %> <% if r.object.new_record? %> <%= render partial: 'edit_fields', locals: {f: r} %> <% else %> <%= render partial: 'edit_fields', locals: {f: r} %> <% end %> <% end %>
<%= t '.email' %> <%= t '.role' %> <%= t '.actions' %>
<%= cancel_link r.object, '#', class: 'btn btn-link', role: 'button', 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', role: 'button', data: { behavior: 'cancel-edit' } %> <%=f.submit nil, class: 'btn btn-primary'%>
<%= exhibit_create_link Spotlight::Role.new, '#', class: 'btn btn-secondary', data: {behavior: 'new-user'} %>
<% end %>