<%= 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 %> <% 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'%>
|
<%= exhibit_create_link Spotlight::Role.new, '#', class: 'btn btn-default', data: {behavior: 'new-user'} %>