Sha256: 1bed859b27874d1a5c14ce64a4777de535bcc71bedb3564a2e9ab2d9bc241a66

Contents?: true

Size: 1.78 KB

Versions: 8

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">
        <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>
          <% 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-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(presenter.id) %>"
          data-source="<%= source %>">
          <%= t('hyrax.collection.actions.nest_collections.button_label') %>
        </button>
      </div>

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hyrax-3.6.0 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb
hyrax-3.5.0 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb
hyrax-3.4.2 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb
hyrax-3.4.1 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb
hyrax-3.4.0 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb
hyrax-3.3.0 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb
hyrax-3.2.0 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb
hyrax-3.1.0 app/views/hyrax/my/collections/_modal_add_subcollection.html.erb