Sha256: 2848ebb228a7914cf3c61ed6b1f9f679a763b89c2bd891fb25d4ecb3be024aa9
Contents?: true
Size: 1.51 KB
Versions: 30
Compression:
Stored size: 1.51 KB
Contents
<%= button_tag t(:'spotlight.saved_search.label'), id: "save-this-search", class: 'btn btn-secondary', data: {toggle:"modal", target:"#save-modal"} %> <div class="modal fade" id="save-modal" tabindex="-1" role="dialog" aria-labelledby="save-modal-label" aria-hidden="true"> <div class="modal-dialog"> <%= bootstrap_form_for [spotlight, current_exhibit, Spotlight::Search.new] do |f| %> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title" id="save-modal-label"><%= t(:'spotlight.saved_search.label') %></h4> <button type="button" class="blacklight-modal-close close" data-dismiss="modal" aria-label="<%= t('blacklight.modal.close') %>"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <%= f.text_field :title, label: t(:'spotlight.saved_search.title') %> <%= label_tag :id, t(:'spotlight.saved_search.id'), class: 'col-form-label' %> <%= select_tag :id, options_for_select(current_exhibit.searches.map { |s| [s.full_title, s.id] }), include_blank: true, class: 'form-control' %> <%= render Blacklight::HiddenSearchStateComponent.new(params: search_state.params_for_search.except(:qt, :page)) %> </div> <div class="modal-footer d-flex flex-row-reverse justify-content-start"> <%= f.submit nil, class: 'btn btn-primary' %> <button type="button" class="btn btn-link" data-dismiss="modal"><%= t :cancel %></button> </div> </div> <% end %> </div> </div>
Version data entries
30 entries across 30 versions & 1 rubygems