debian-mirror-gitlab/app/views/search/_form.html.haml

21 lines
1.2 KiB
Text
Raw Normal View History

2019-10-12 21:52:04 +05:30
= form_tag search_path, method: :get, class: 'search-page-form js-search-form' do |f|
2015-09-11 14:41:01 +05:30
= hidden_field_tag :snippets, params[:snippets]
= hidden_field_tag :scope, params[:scope]
2019-10-12 21:52:04 +05:30
= hidden_field_tag :repository_ref, params[:repository_ref]
2015-09-25 12:07:36 +05:30
2019-10-12 21:52:04 +05:30
.d-lg-flex.align-items-end
.search-field-holder.form-group.mr-lg-1.mb-lg-0
%label{ for: "dashboard_search" }
= _("What are you searching for?")
2021-02-22 17:27:13 +05:30
.gl-search-box-by-type
= search_field_tag :search, params[:search], placeholder: _("Search for projects, issues, etc."), class: "gl-form-input form-control search-text-input js-search-input", id: "dashboard_search", autofocus: true, spellcheck: false
= sprite_icon('search', css_class: 'gl-search-box-by-type-search-icon gl-icon')
2021-01-03 14:25:43 +05:30
%button.search-clear.js-search-clear{ class: [("hidden" if params[:search].blank?), "has-tooltip"], type: "button", tabindex: "-1", title: _('Clear') }
2020-10-24 23:57:45 +05:30
= sprite_icon('clear')
2019-10-12 21:52:04 +05:30
%span.sr-only
= _("Clear search")
2015-09-11 14:41:01 +05:30
- unless params[:snippets].eql? 'true'
2018-03-17 18:26:18 +05:30
= render 'filter'
2019-10-12 21:52:04 +05:30
.d-flex-center.flex-column.flex-lg-row
2021-02-22 17:27:13 +05:30
= button_tag _("Search"), class: "gl-button btn btn-success btn-search mt-lg-0 ml-lg-1 align-self-end"