Sha256: 5db78b89829ad1d4a2c94a84a6d8b80a7767694e0983a4a14556c5cf57dc9c2f

Contents?: true

Size: 1.43 KB

Versions: 12

Compression:

Stored size: 1.43 KB

Contents

<%= render 'spotlight/shared/curation_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.administration.sidebar.appearance'), spotlight.edit_exhibit_appearance_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.administration.sidebar.appearance'), spotlight.edit_exhibit_appearance_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

12 entries across 12 versions & 1 rubygems

Version Path
blacklight-spotlight-0.8.2 app/views/spotlight/searches/index.html.erb
blacklight-spotlight-0.8.1 app/views/spotlight/searches/index.html.erb
blacklight-spotlight-0.8.0 app/views/spotlight/searches/index.html.erb
blacklight-spotlight-0.7.2 app/views/spotlight/searches/index.html.erb
blacklight-spotlight-0.7.1 app/views/spotlight/searches/index.html.erb
blacklight-spotlight-0.7.0 app/views/spotlight/searches/index.html.erb
blacklight-spotlight-0.6.0 app/views/spotlight/searches/index.html.erb
blacklight-spotlight-0.5.0 app/views/spotlight/searches/index.html.erb
blacklight-spotlight-0.4.1 app/views/spotlight/searches/index.html.erb
blacklight-spotlight-0.3.1 app/views/spotlight/searches/index.html.erb
blacklight-spotlight-0.3.0 app/views/spotlight/searches/index.html.erb
blacklight-spotlight-0.2.0 app/views/spotlight/searches/index.html.erb