Sha256: 4fafbbab069de2b889c9a85656000a455b3fe8f5ce2da88965152679e1c14b0c

Contents?: true

Size: 1.99 KB

Versions: 5

Compression:

Stored size: 1.99 KB

Contents

<%= form_tag search_form_action, method: :get, id: "search-form-header", role: "search" do %>
  <%= render_hash_as_hidden_fields(search_state.params_for_search.except(:q, :search_field, :qt, :page, :utf8)) %>
  <%= hidden_field_tag :search_field, 'all_fields' %>
  <div class="input-group">

    <label class="sr-only" for="search-field-header"><%= t("hyrax.search.form.q.label", application_name: application_name) %></label>
    <%= text_field_tag :q, current_search_parameters , class: "q form-control", id: "search-field-header", placeholder: t("hyrax.search.form.q.placeholder") %>

    <div class="input-group-btn">
      <button type="submit" class="btn btn-primary" id="search-submit-header">
        <%= t('hyrax.search.button.html') %>
      </button>
      <% if current_user %>
        <button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown">
          <span data-search-element="label"><%= t("hyrax.search.form.option.all.label_long", application_name: application_name) %></span>
          <span class="caret"></span>
        </button>

        <ul class="dropdown-menu pull-right">
          <li>
            <%= link_to t("hyrax.search.form.option.all.label_long", application_name: application_name), "#",
                data: { "search-option" => main_app.search_catalog_path, "search-label" => t("hyrax.search.form.option.all.label_short") } %>
          </li>
          <li>
            <%= link_to t("hyrax.search.form.option.my_works.label_long"), "#",
                data: { "search-option" => hyrax.my_works_path, "search-label" => t("hyrax.search.form.option.my_works.label_short") } %>
          </li>
          <li>
            <%= link_to t("hyrax.search.form.option.my_collections.label_long"), "#",
                data: { "search-option" => hyrax.my_collections_path, "search-label" => t("hyrax.search.form.option.my_collections.label_short") } %>
          </li>
        <% end %>

      </ul>
    </div><!-- /.input-group-btn -->

  </div><!-- /.input-group -->
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hyrax-2.1.0 app/views/catalog/_search_form.html.erb
hyrax-2.1.0.rc4 app/views/catalog/_search_form.html.erb
hyrax-2.1.0.rc3 app/views/catalog/_search_form.html.erb
hyrax-2.1.0.rc2 app/views/catalog/_search_form.html.erb
hyrax-2.1.0.rc1 app/views/catalog/_search_form.html.erb