Sha256: df5a39de0dc870cc8a47546f03272035cb0b2b873c485cfda19172e8fbc3d4a7

Contents?: true

Size: 1.24 KB

Versions: 3

Compression:

Stored size: 1.24 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>
      <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-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

3 entries across 3 versions & 1 rubygems

Version Path
hyrax-2.2.3 app/views/hyrax/dashboard/_index_partials/_proxy_rights.html.erb
hyrax-2.2.2 app/views/hyrax/dashboard/_index_partials/_proxy_rights.html.erb
hyrax-2.2.1 app/views/hyrax/dashboard/_index_partials/_proxy_rights.html.erb