Sha256: 3a77408ece649f9625bdf06a3aaeee8e4553747c271fa4a4ba2171dd9a42eaaa
Contents?: true
Size: 1.49 KB
Versions: 6
Compression:
Stored size: 1.49 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_hash_as_hidden_fields(search_state.params_for_search.except(:qt, :page, :utf8)) %> </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
6 entries across 6 versions & 1 rubygems