Sha256: 8028d15f2c60921392b870b5ff7867b3ca17458f6825dd16a1fa1846f0a479ed
Contents?: true
Size: 1.34 KB
Versions: 49
Compression:
Stored size: 1.34 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">×</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') %> <%= label_tag :id, t(:'spotlight.saved_search.id'), class: 'control-label' %> <%= select_tag :id, options_for_select(current_exhibit.searches.map { |s| [s.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"> <%= 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
49 entries across 49 versions & 1 rubygems