Sha256: eec8399ae1764257b93b7db91ba6b743526f48b43b38a9ecddb4ebf9fac9ce35

Contents?: true

Size: 1.78 KB

Versions: 11

Compression:

Stored size: 1.78 KB

Contents

<div class="modal fade disable-unless-selected" id="add-subcollection-modal-<%= id %>" tabindex="-1" role="dialog" aria-labelledby="add-subcollection-label">
  <div class="modal-dialog" role="document">
    <div class="modal-content">

      <div class="modal-header">
        <h4 class="modal-title" id="add-subcollection-label"><%= t('hyrax.collection.actions.nest_collections.modal_title') %></h4>
        <button type="button" class="close" data-dismiss="modal" aria-label="<%= t('hyrax.dashboard.heading_actions.close') %>"><span aria-hidden="true">&times;</span></button>
      </div>

      <div class="modal-body">
        <div class="modal-ajax-alert"></div>
        <label><%= t('hyrax.collection.actions.nest_collections.select_label') %></label>
        <input type="hidden" name="source" value="<%= source %>" />
        <select name="child_id">
          <option value="none"><%= t("hyrax.dashboard.my.action.select") %></option>
          <% available_child_collections(collection: presenter).each do |coll| %>
            <option value="<%= coll.id %>"><%= coll.title.first %></option>
          <% end %>
        </select>
      </div>

      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal"><%= t('helpers.action.cancel') %></button>
        <% # '.modal-add-button' and '.modal-submit-button' classes applied below are used for JavaScript targeting %>
        <button
          disabled
          type="button"
          class="btn btn-primary modal-add-button modal-submit-button"
          data-post-url="<%= dashboard_create_nest_collection_under_path(presenter.id) %>"
          data-source="<%= source %>">
          <%= t('hyrax.collection.actions.nest_collections.button_label') %>
        </button>
      </div>

    </div>
  </div>
</div>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
hyrax-5.0.1 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb
hyrax-5.0.0 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb
hyrax-5.0.0.rc3 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb
hyrax-5.0.0.rc2 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb
hyrax-5.0.0.rc1 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb
hyrax-4.0.0 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb
hyrax-4.0.0.rc3 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb
hyrax-4.0.0.rc2 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb
hyrax-4.0.0.rc1 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb
hyrax-4.0.0.beta2 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb
hyrax-4.0.0.beta1 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb