Sha256: 2b5d74ecf965d047737a8fff145f64e59f7661712868091769ea94345bf581ad

Contents?: true

Size: 1.92 KB

Versions: 34

Compression:

Stored size: 1.92 KB

Contents

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

      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="<%= t('hyrax.dashboard.heading_actions.close') %>"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="add-subcollection-label"><%= t('hyrax.collection.actions.nest_collections.modal_title') %></h4>
      </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>
          <% colls = Hyrax::Collections::NestedCollectionQueryService.available_child_collections(parent: collection, scope: controller, limit_to_id: nil) %>
          <% colls.each {|coll| %>
            <option value="<%= coll.id %>"><%= coll.title.first %></option>
          <% } %>
        </select>
      </div>

      <div class="modal-footer">
        <button type="button" class="btn btn-default" 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(collection.id) %>"
          data-source="<%= source %>">
          <%= t('hyrax.collection.actions.nest_collections.button_label') %>
        </button>
      </div>

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

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
hyrax-2.9.6 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb
hyrax-2.9.5 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb
hyrax-2.9.4 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb
hyrax-2.9.3 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb
hyrax-2.9.2 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb
hyrax-2.9.1 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb
hyrax-2.9.0 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb
hyrax-2.8.0 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb
hyrax-2.7.2 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb
hyrax-2.7.1 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb
hyrax-2.7.0 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb
hyrax-2.6.0 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb
hyrax-3.0.0.pre.rc1 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb
hyrax-3.0.0.pre.beta3 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb
hyrax-2.5.1 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb
hyrax-2.5.0 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb
hyrax-3.0.0.pre.beta2 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb
hyrax-2.4.1 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb
hyrax-3.0.0.pre.beta1 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb
hyrax-2.4.0 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb