Sha256: 32b0a5aefefe1bb47d6e8cbb6ae54a02cbdb5c7debe32866756b7546abaef8d4

Contents?: true

Size: 1.97 KB

Versions: 31

Compression:

Stored size: 1.97 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? && g.access == Hyrax::PermissionTemplateAccess::MANAGE %>
                              <%= 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

31 entries across 31 versions & 1 rubygems

Version Path
hyrax-2.9.6 app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb
hyrax-2.9.5 app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb
hyrax-2.9.4 app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb
hyrax-2.9.3 app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb
hyrax-2.9.2 app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb
hyrax-2.9.1 app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb
hyrax-2.9.0 app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb
hyrax-2.8.0 app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb
hyrax-2.7.2 app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb
hyrax-2.7.1 app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb
hyrax-2.7.0 app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb
hyrax-2.6.0 app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb
hyrax-2.5.1 app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb
hyrax-2.5.0 app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb
hyrax-2.4.1 app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb
hyrax-2.4.0 app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb
hyrax-2.3.3 app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb
hyrax-2.3.2 app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb
hyrax-2.3.1 app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb
hyrax-2.3.0 app/views/hyrax/admin/admin_sets/_form_participant_table.html.erb