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">&times;</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

Version Path
blacklight-spotlight-3.6.0.beta10 app/views/catalog/_save_search.html.erb
blacklight-spotlight-3.6.0.beta9 app/views/catalog/_save_search.html.erb
blacklight-spotlight-3.6.0.beta8 app/views/catalog/_save_search.html.erb
blacklight-spotlight-3.5.0.4 app/views/catalog/_save_search.html.erb
blacklight-spotlight-3.6.0.beta7 app/views/catalog/_save_search.html.erb
blacklight-spotlight-3.5.0.3 app/views/catalog/_save_search.html.erb
blacklight-spotlight-3.6.0.beta6 app/views/catalog/_save_search.html.erb
blacklight-spotlight-3.6.0.beta5 app/views/catalog/_save_search.html.erb
blacklight-spotlight-3.6.0.beta4 app/views/catalog/_save_search.html.erb
blacklight-spotlight-3.6.0.beta3 app/views/catalog/_save_search.html.erb
blacklight-spotlight-3.6.0.beta1 app/views/catalog/_save_search.html.erb
blacklight-spotlight-3.5.0.2 app/views/catalog/_save_search.html.erb
blacklight-spotlight-3.5.0.1 app/views/catalog/_save_search.html.erb
blacklight-spotlight-3.5.0 app/views/catalog/_save_search.html.erb
blacklight-spotlight-3.4.4.1 app/views/catalog/_save_search.html.erb
blacklight-spotlight-3.4.4 app/views/catalog/_save_search.html.erb
blacklight-spotlight-3.4.3 app/views/catalog/_save_search.html.erb
blacklight-spotlight-3.4.2.2 app/views/catalog/_save_search.html.erb
blacklight-spotlight-3.4.2.1 app/views/catalog/_save_search.html.erb
blacklight-spotlight-3.4.2 app/views/catalog/_save_search.html.erb