Sha256: 6db8f16b0b756827d91ec416668a99be49ff9f6ffcb69250fca4fa4e01f2235a
Contents?: true
Size: 1.89 KB
Versions: 44
Compression:
Stored size: 1.89 KB
Contents
<h3><%= t(".#{access}.title") %></h3> <p><%= t(".#{access}.help") %></p> <p><%= t(".#{access}.help_with_works", type_title: @collection.collection_type.title) if @collection.share_applies_to_new_works? && access != 'depositors' %></p> <% if @form.permission_template.access_grants.select(&filter).any? %> <table class="table table-striped share-status"> <thead> <tr> <th><%= t(".#{access}.agent_name") %></th> <th><%= t(".#{access}.type") %></th> <th><%= t(".#{access}.action") %></th> </tr> </thead> <tbody> <% @form.permission_template.access_grants.select(&filter).each do |g| %> <tr> <td data-agent="<%= g.agent_id %>"><%= g.label %></td> <td><%= g.agent_type.titleize %></td> <td> <% if g.admin_group? %> <%= link_to t(".#{access}.remove"), hyrax.admin_permission_template_access_path(g), method: :delete, class: 'btn btn-sm btn-danger disabled', disabled: true, title: t('hyrax.admin.admin_sets.form.permission_destroy_errors.admin_group') %> <% else %> <%= link_to t(".#{access}.remove"), hyrax.admin_permission_template_access_path(g), method: :delete, class: 'btn btn-sm btn-danger' %> <% end %> </td> </tr> <% end %> </tbody> </table> <% else %> <p><em><%= t(".#{access}.empty") %></em></p> <% end %>
Version data entries
44 entries across 44 versions & 1 rubygems