Sha256: 93d9b043dcbdfac4379d104d512c71834e55090b954f17b5197f72fe799c0457

Contents?: true

Size: 1.13 KB

Versions: 25

Compression:

Stored size: 1.13 KB

Contents

<%= button_tag t(:'spotlight.saved_search.label'), id: "save-this-search", class: 'btn btn-default',  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">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title" id="save-modal-label"><%= t(:'spotlight.saved_search.label') %></h4>
      </div>
      <div class="modal-body">
        <%=f.text_field :title, label: t(:'spotlight.saved_search.title'), required: true %>
        <%= render_hash_as_hidden_fields(search_state.params_for_search.except(:qt, :page, :utf8)) %>
      </div>
      <div class="modal-footer">
        <%= f.submit nil, class: 'btn btn-primary pull-right' %>
        <button type="button" class="btn btn-link" data-dismiss="modal"><%= t :cancel %></button>
      </div>
    </div>
    <% end %>
  </div>
</div>

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
blacklight-spotlight-0.32.0 app/views/catalog/_save_search.html.erb
blacklight-spotlight-0.31.0 app/views/catalog/_save_search.html.erb
blacklight-spotlight-0.30.0 app/views/catalog/_save_search.html.erb
blacklight-spotlight-0.29.1 app/views/catalog/_save_search.html.erb
blacklight-spotlight-0.29.0 app/views/catalog/_save_search.html.erb
blacklight-spotlight-0.28.3 app/views/catalog/_save_search.html.erb
blacklight-spotlight-0.28.2 app/views/catalog/_save_search.html.erb
blacklight-spotlight-0.28.1 app/views/catalog/_save_search.html.erb
blacklight-spotlight-0.28.0 app/views/catalog/_save_search.html.erb
blacklight-spotlight-0.27.0 app/views/catalog/_save_search.html.erb
blacklight-spotlight-0.26.1 app/views/catalog/_save_search.html.erb
blacklight-spotlight-0.26.0 app/views/catalog/_save_search.html.erb
blacklight-spotlight-0.25.0 app/views/catalog/_save_search.html.erb
blacklight-spotlight-0.24.0 app/views/catalog/_save_search.html.erb
blacklight-spotlight-0.23.0 app/views/catalog/_save_search.html.erb
blacklight-spotlight-0.22.0 app/views/catalog/_save_search.html.erb
blacklight-spotlight-0.21.0 app/views/catalog/_save_search.html.erb
blacklight-spotlight-0.20.3 app/views/catalog/_save_search.html.erb
blacklight-spotlight-0.20.2 app/views/catalog/_save_search.html.erb
blacklight-spotlight-0.20.1 app/views/catalog/_save_search.html.erb