Sha256: b639394227c009891dce62edbe405742bbc297070e269b6a5bdf0feff98127e3

Contents?: true

Size: 1.93 KB

Versions: 5

Compression:

Stored size: 1.93 KB

Contents

                  <h3><%= 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 %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hyrax-3.6.0 app/views/hyrax/dashboard/collections/_form_share_table.html.erb
hyrax-3.5.0 app/views/hyrax/dashboard/collections/_form_share_table.html.erb
hyrax-3.4.2 app/views/hyrax/dashboard/collections/_form_share_table.html.erb
hyrax-3.4.1 app/views/hyrax/dashboard/collections/_form_share_table.html.erb
hyrax-3.4.0 app/views/hyrax/dashboard/collections/_form_share_table.html.erb