Sha256: 98e3ff61860f312ea69d2d535cadeaab8e8670723efbc3e45d81405f777858a1

Contents?: true

Size: 1.2 KB

Versions: 7

Compression:

Stored size: 1.2 KB

Contents

<div class="clearfix proxy-rights">
  <div class="row">
    <div class="col-xs-12">
      <p><%= t('hyrax.dashboard.proxy_help') %></p>
    </div>
  </div>
  <div class="row">
    <div class="col-xs-6 proxy-search">
      <h4><%= t("hyrax.dashboard.authorize_proxies") %></h4>
      <label class="sr-only" 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 class="col-xs-6">
      <h4><%= t("hyrax.dashboard.current_proxies") %></h4>
      <table class="table table-condensed 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

7 entries across 7 versions & 1 rubygems

Version Path
hyrax-2.2.0 app/views/hyrax/dashboard/_index_partials/_proxy_rights.html.erb
hyrax-2.1.0 app/views/hyrax/dashboard/_index_partials/_proxy_rights.html.erb
hyrax-2.1.0.rc4 app/views/hyrax/dashboard/_index_partials/_proxy_rights.html.erb
hyrax-2.1.0.rc3 app/views/hyrax/dashboard/_index_partials/_proxy_rights.html.erb
hyrax-2.1.0.rc2 app/views/hyrax/dashboard/_index_partials/_proxy_rights.html.erb
hyrax-2.1.0.rc1 app/views/hyrax/dashboard/_index_partials/_proxy_rights.html.erb
hyrax-2.1.0.beta2 app/views/hyrax/dashboard/_index_partials/_proxy_rights.html.erb