emory-libraries/dlp-selfdeposit

View on GitHub
app/views/hyrax/my/_search_form.html.erb

Summary

Maintainability
Test Coverage
<%# Hyrax v5.0.1 Override: line 7 remove label %>
<%= form_tag search_action_url, method: :get, class: "search-query-form search-form", role: "search" do %>

    <%= render Blacklight::HiddenSearchStateComponent.new(params: search_state.params_for_search.except(:q, :search_field, :qt, :page, :utf8)) %>
    <div class="form-group row">
      <label class="col-form-label col-sm-3 text-right" for="search-field-header">
         <%# t("hyrax.search.form.q.label", application_name: application_name) %>
      </label>
  
      <div class="input-group mb-sm-auto col-sm-9">
        <%= text_field_tag :q, current_search_parameters , 'aria-label': 'Search', class: "q form-control", id: "search-field-header", placeholder: t("hyrax.search.form.q.placeholder") %>
        <div class="input-group-append">
          <button type="submit" class="btn btn-primary" id="search-submit-header">
            <%= t('hyrax.search.button.html') %>
          </button>
        </div>
      </div><!-- /.input-group -->
    </div><!-- /.form-row -->
  <% end %>