Sha256: 9187f38cc321adf1c0f8e1a0c8724b5a0de45e303f622228319f992e5f28a7de

Contents?: true

Size: 1.46 KB

Versions: 17

Compression:

Stored size: 1.46 KB

Contents

<%= render 'spotlight/shared/exhibit_sidebar' %>
<div id="content" class="col-md-9">
  <%= curation_page_title %>
  <h3><%= header_with_count(t(:'.categories_header'), @searches.count) %></h3>

  <% if @searches.empty? %>
    <%= t :'.no_saved_searches' %>
    <% unless @exhibit.searchable? %>
      <p class="instructions alert-warning">
        <%= t(:'.not_searchable_html', href: link_to(t(:'spotlight.configuration.sidebar.search_configuration'), spotlight.edit_exhibit_search_configuration_path(@exhibit))) %>
      </p>
    <% end %>
  <% else %>
    <p class="instructions"><%= t(:'.instructions') %></p>
    <% unless @exhibit.searchable? %>
      <p class="instructions alert-warning">
        <%= t(:'.not_searchable_html', href: link_to(t(:'spotlight.configuration.sidebar.search_configuration'), spotlight.edit_exhibit_search_configuration_path(@exhibit))) %>
      </p>
    <% end %>
    <%= bootstrap_form_for @exhibit, url: update_all_exhibit_searches_path(@exhibit), layout: :horizontal, control_col: 'col-sm-10' do |f| %>

      <div class="panel-group dd search_admin" id="nested-pages" data-behavior="nestable" data-max-depth="1">
        <ol class="dd-list">
          <%= f.fields_for :searches do |p| %>
            <%= render partial: 'search', locals: { f: p} %>
          <% end %>
        </ol>
      </div>

      <div class="pull-right">
        <%= submit_tag t(:'helpers.action.update_all'), class: "btn btn-primary" %>
      </div>
    <% end %>
  <% end %>
</div>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
blacklight-spotlight-0.17.0 app/views/spotlight/searches/index.html.erb
blacklight-spotlight-0.16.0 app/views/spotlight/searches/index.html.erb
blacklight-spotlight-0.15.0 app/views/spotlight/searches/index.html.erb
blacklight-spotlight-0.14.2 app/views/spotlight/searches/index.html.erb
blacklight-spotlight-0.14.1 app/views/spotlight/searches/index.html.erb
blacklight-spotlight-0.14.0 app/views/spotlight/searches/index.html.erb
blacklight-spotlight-0.13.0 app/views/spotlight/searches/index.html.erb
blacklight-spotlight-0.12.1 app/views/spotlight/searches/index.html.erb
blacklight-spotlight-0.12.0 app/views/spotlight/searches/index.html.erb
blacklight-spotlight-0.11.0 app/views/spotlight/searches/index.html.erb
blacklight-spotlight-0.10.3 app/views/spotlight/searches/index.html.erb
blacklight-spotlight-0.10.2 app/views/spotlight/searches/index.html.erb
blacklight-spotlight-0.10.1 app/views/spotlight/searches/index.html.erb
blacklight-spotlight-0.10.0 app/views/spotlight/searches/index.html.erb
blacklight-spotlight-0.9.2 app/views/spotlight/searches/index.html.erb
blacklight-spotlight-0.9.1 app/views/spotlight/searches/index.html.erb
blacklight-spotlight-0.9.0 app/views/spotlight/searches/index.html.erb