BigW Consortium Gitlab

_form.html.haml 813 Bytes
Newer Older
1
= form_tag search_path, method: :get, class: 'js-search-form' do |f|
2 3
  = hidden_field_tag :snippets, params[:snippets]
  = hidden_field_tag :scope, params[:scope]
4

5
  .search-holder
6
    .search-field-holder
Phil Hughes committed
7 8 9 10 11 12
      = search_field_tag :search, params[:search], placeholder: "Search for projects, issues etc", class: "form-control search-text-input js-search-input", id: "dashboard_search", autofocus: true, spellcheck: false
      = icon("search", class: "search-icon")
      %button.search-clear.js-search-clear{ class: ("hidden" if !params[:search].present?), type: "button", tabindex: "-1" }
        = icon("times-circle")
        %span.sr-only
          Clear search
13
    - unless params[:snippets].eql? 'true'
14
      = render 'filter' if current_user
Phil Hughes committed
15
    = button_tag "Search", class: "btn btn-success btn-search"