Sha256: c4946ca7b0c62a93a04a165d820cacefa3acde485f5eef8347148911f44b41b6

Contents?: true

Size: 1.22 KB

Versions: 15

Compression:

Stored size: 1.22 KB

Contents

<div class="clearfix proxy-rights">
  <div class="row">
    <div class="col-12">
      <p><%= t('hyrax.dashboard.proxy_help') %></p>
    </div>
  </div>
  <div class="row">
    <div class="col-6 proxy-search">
      <h2><%= t("hyrax.dashboard.authorize_proxies") %></h2>
      <div class="form-group">
        <label for="user"><%= t("hyrax.dashboard.proxy_user") %></label>
        <%= hidden_field_tag :user, nil, data: { grantor: current_user.to_param } %>
        <%= hidden_field_tag :delete_button_label, nil, data: { label: I18n.t('hyrax.dashboard.proxy_delete') } %>
      </div>
    </div>

    <div class="col-6">
      <h2><%= t("hyrax.dashboard.current_proxies") %></h2>
      <table class="table table-sm table-striped" id="authorizedProxies">
        <tbody>
        <% user.can_receive_deposits_from.each do |depositor| %>
            <tr><td class="depositor-name"><%= depositor.name %></td>
              <td><%= link_to(I18n.t('hyrax.dashboard.proxy_delete'), hyrax.user_depositor_path(user, depositor),
                              method: :delete,
                              class: "remove-proxy-button btn btn-danger") %>
              </td></tr>
        <% end %>
        </tbody>
      </table>
    </div>
  </div>
</div>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
hyrax-5.1.0.pre.beta1 app/views/hyrax/dashboard/_index_partials/_proxy_rights.html.erb
hyrax-5.0.4 app/views/hyrax/dashboard/_index_partials/_proxy_rights.html.erb
hyrax-5.0.3 app/views/hyrax/dashboard/_index_partials/_proxy_rights.html.erb
hyrax-5.0.2 app/views/hyrax/dashboard/_index_partials/_proxy_rights.html.erb
hyrax-5.0.1 app/views/hyrax/dashboard/_index_partials/_proxy_rights.html.erb
hyrax-5.0.0 app/views/hyrax/dashboard/_index_partials/_proxy_rights.html.erb
hyrax-5.0.0.rc3 app/views/hyrax/dashboard/_index_partials/_proxy_rights.html.erb
hyrax-5.0.0.rc2 app/views/hyrax/dashboard/_index_partials/_proxy_rights.html.erb
hyrax-5.0.0.rc1 app/views/hyrax/dashboard/_index_partials/_proxy_rights.html.erb
hyrax-4.0.0 app/views/hyrax/dashboard/_index_partials/_proxy_rights.html.erb
hyrax-4.0.0.rc3 app/views/hyrax/dashboard/_index_partials/_proxy_rights.html.erb
hyrax-4.0.0.rc2 app/views/hyrax/dashboard/_index_partials/_proxy_rights.html.erb
hyrax-4.0.0.rc1 app/views/hyrax/dashboard/_index_partials/_proxy_rights.html.erb
hyrax-4.0.0.beta2 app/views/hyrax/dashboard/_index_partials/_proxy_rights.html.erb
hyrax-4.0.0.beta1 app/views/hyrax/dashboard/_index_partials/_proxy_rights.html.erb