Sha256: 8daabf2dc568112e3cc35420712aad5ed99cd3276f9002bcedf0e8ef3a3c18e2
Contents?: true
Size: 1.5 KB
Versions: 4
Compression:
Stored size: 1.5 KB
Contents
<div class="mb-4"> <h3 class="h4"><%= t(".#{access}.title") %></h3> <p><%= t(".#{access}.help") %></p> <p><%= t(".#{access}.help_with_works", type_title: collection_type.title) if collection_type.share_applies_to_new_works? && access != 'depositors' %></p> <% if collection_permission_template_form_for(form: @form).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> <% collection_permission_template_form_for(form: @form).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 %> </div>
Version data entries
4 entries across 4 versions & 1 rubygems