Sha256: 7001bd4d194429f798b1d286324daf426f294b82fde2ddaa500eaf4156f1d51f

Contents?: true

Size: 1.4 KB

Versions: 15

Compression:

Stored size: 1.4 KB

Contents

<%- @page_title= "GBL♦Admin - Search" %>

<h1 style="width:100%; margin-bottom:2rem;">
  Advanced Search
</h1>

<div class="row">
  <div id="search-form" class="col-8">
    <%= form_tag(admin_documents_path, { method: :get, class: "my-2 my-lg-0" }) do %>
      <input name="q" autofocus class="form-control mr-sm-8" type="search" placeholder="Search documents" aria-label="Search" value="<%= params[:q] ? params[:q] : ''%>">

      <div id="facet-limits" class="col-md-12 mt-4">
        <h3>Limit Results By</h3>
        <% if @facet_options.present? %>
          <% @facet_options.each do |facet| %>
            <div class="row">
              <% if facet['type'] == 'facet' %>
                <%= label_tag("f[#{facet['id']}]", { class: 'col-sm-4 control-label' }) do %>
                  <%= facet['attributes']['label'] %>
                <% end %>
                <%- options = facet['attributes']['items'].collect{ |item| item['attributes']['label'] } %>

                <div class="col-sm-8">
                  <%= select_tag "f[#{facet['id']}]", options_for_select(options), multiple: true, class: 'chosen-select', style: 'width:240px;' %>
                </div>

              <% end %>
            </div>
          <% end %>
        <% end %>
      </div>

      <div class="mt-4">
        <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
      </div>
    <% end %>
  </div>
</div>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
geoblacklight_admin-0.7.0 app/views/admin/search/index.html.erb
geoblacklight_admin-0.6.3 app/views/admin/search/index.html.erb
geoblacklight_admin-0.6.2 app/views/admin/search/index.html.erb
geoblacklight_admin-0.6.1 app/views/admin/search/index.html.erb
geoblacklight_admin-0.6.0 app/views/admin/search/index.html.erb
geoblacklight_admin-0.5.1 app/views/admin/search/index.html.erb
geoblacklight_admin-0.5.0 app/views/admin/search/index.html.erb
geoblacklight_admin-0.4.2 app/views/admin/search/index.html.erb
geoblacklight_admin-0.4.1 app/views/admin/search/index.html.erb
geoblacklight_admin-0.4.0 app/views/admin/search/index.html.erb
geoblacklight_admin-0.3.2 app/views/admin/search/index.html.erb
geoblacklight_admin-0.3.1 app/views/admin/search/index.html.erb
geoblacklight_admin-0.3.0 app/views/admin/search/index.html.erb
geoblacklight_admin-0.2.1 app/views/admin/search/index.html.erb
geoblacklight_admin-0.1.0 app/views/admin/search/index.html.erb