Sha256: 2c4d1fc4dc2678d62c29feb6fdb53154f2432953bb8838ba7fbf4aed7ee02f12
Contents?: true
Size: 1.92 KB
Versions: 12
Compression:
Stored size: 1.92 KB
Contents
<h3><%= t(".#{access}.title") %></h3> <p><%= t(".#{access}.help") %></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? %> <%= button_to t(".#{access}.remove"), hyrax.admin_permission_template_access_path(g), method: :delete, class: 'btn btn-danger disabled', disabled: true, title: t('hyrax.admin.admin_sets.form.permission_destroy_errors.admin_group') %> <% else %> <%= button_to t(".#{access}.remove"), hyrax.admin_permission_template_access_path(g), method: :delete, class: 'btn btn-danger' %> <% end %> </td> </tr> <% end %> </tbody> </table> <% else %> <p><em><%= t(".#{access}.empty") %></em></p> <% end %> <%= button_tag t('.allow_all_registered'), class: 'btn btn-info', data: { behavior: 'add-registered-users' } if access == 'depositors'%>
Version data entries
12 entries across 12 versions & 1 rubygems