Sha256: 144dd099514b57b4386881b1efa96bf6f8b71cdc55c2fe964f2ebb63ab36d04b

Contents?: true

Size: 1.56 KB

Versions: 15

Compression:

Stored size: 1.56 KB

Contents

<div class="mb-4">
  <h3 class="h4"><%= t(".#{access}.title") %></h3>
  <p><%= t(".#{access}.help") %></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? && g.access == Hyrax::PermissionTemplateAccess::MANAGE %>
              <%= button_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 %>
              <%= button_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 %>
  <%= button_tag t('.allow_all_registered'),
                  class: 'btn btn-primary ',
                  data: { behavior: 'add-registered-users' } if access == 'depositors' %>
</div>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
hyrax-5.1.0.pre.beta1 app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb
hyrax-5.0.4 app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb
hyrax-5.0.3 app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb
hyrax-5.0.2 app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb
hyrax-5.0.1 app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb
hyrax-5.0.0 app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb
hyrax-5.0.0.rc3 app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb
hyrax-5.0.0.rc2 app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb
hyrax-5.0.0.rc1 app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb
hyrax-4.0.0 app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb
hyrax-4.0.0.rc3 app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb
hyrax-4.0.0.rc2 app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb
hyrax-4.0.0.rc1 app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb
hyrax-4.0.0.beta2 app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb
hyrax-4.0.0.beta1 app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb