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

Version Path
hyrax-3.3.0 app/views/hyrax/dashboard/collections/_form_share_table.html.erb
hyrax-3.2.0 app/views/hyrax/dashboard/collections/_form_share_table.html.erb
hyrax-2.9.6 app/views/hyrax/dashboard/collections/_form_share_table.html.erb
hyrax-3.1.0 app/views/hyrax/dashboard/collections/_form_share_table.html.erb
hyrax-2.9.5 app/views/hyrax/dashboard/collections/_form_share_table.html.erb
hyrax-3.0.2 app/views/hyrax/dashboard/collections/_form_share_table.html.erb
hyrax-3.0.1 app/views/hyrax/dashboard/collections/_form_share_table.html.erb
hyrax-3.0.0 app/views/hyrax/dashboard/collections/_form_share_table.html.erb
hyrax-3.0.0.pre.rc4 app/views/hyrax/dashboard/collections/_form_share_table.html.erb
hyrax-2.9.4 app/views/hyrax/dashboard/collections/_form_share_table.html.erb
hyrax-3.0.0.pre.rc3 app/views/hyrax/dashboard/collections/_form_share_table.html.erb
hyrax-2.9.3 app/views/hyrax/dashboard/collections/_form_share_table.html.erb
hyrax-2.9.2 app/views/hyrax/dashboard/collections/_form_share_table.html.erb
hyrax-2.9.1 app/views/hyrax/dashboard/collections/_form_share_table.html.erb
hyrax-2.9.0 app/views/hyrax/dashboard/collections/_form_share_table.html.erb
hyrax-3.0.0.pre.rc2 app/views/hyrax/dashboard/collections/_form_share_table.html.erb
hyrax-2.8.0 app/views/hyrax/dashboard/collections/_form_share_table.html.erb
hyrax-2.7.2 app/views/hyrax/dashboard/collections/_form_share_table.html.erb
hyrax-2.7.1 app/views/hyrax/dashboard/collections/_form_share_table.html.erb
hyrax-2.7.0 app/views/hyrax/dashboard/collections/_form_share_table.html.erb