2022-11-25 23:54:43 +05:30
|
|
|
- form_field_classes = local_assigns[:admin_view] || !Feature.enabled?(:project_list_filter_bar) ? 'input-short js-projects-list-filter' : 'gl-w-full! gl-pl-7 '
|
2022-10-11 01:57:18 +05:30
|
|
|
- placeholder = local_assigns[:search_form_placeholder] ? search_form_placeholder : _('Filter by name')
|
2019-07-31 22:56:46 +05:30
|
|
|
|
2022-08-27 11:52:29 +05:30
|
|
|
= form_tag filter_projects_path, method: :get, class: 'project-filter-form', data: { qa_selector: 'project_filter_form_container' }, id: 'project-filter-form' do |f|
|
2017-08-17 22:00:37 +05:30
|
|
|
= search_field_tag :name, params[:name],
|
2019-07-31 22:56:46 +05:30
|
|
|
placeholder: placeholder,
|
|
|
|
class: "project-filter-form-field form-control #{form_field_classes}",
|
2017-08-17 22:00:37 +05:30
|
|
|
spellcheck: false,
|
|
|
|
id: 'project-filter-form-field',
|
|
|
|
autofocus: local_assigns[:autofocus]
|
|
|
|
|
|
|
|
- if local_assigns[:icon]
|
2021-01-03 14:25:43 +05:30
|
|
|
= sprite_icon('search', css_class: 'search-icon')
|
2017-08-17 22:00:37 +05:30
|
|
|
|
|
|
|
- if params[:sort].present?
|
|
|
|
= hidden_field_tag :sort, params[:sort]
|
|
|
|
|
|
|
|
- if params[:personal].present?
|
|
|
|
= hidden_field_tag :personal, params[:personal]
|
|
|
|
|
|
|
|
- if params[:archived].present?
|
|
|
|
= hidden_field_tag :archived, params[:archived]
|
|
|
|
|
|
|
|
- if params[:visibility_level].present?
|
|
|
|
= hidden_field_tag :visibility_level, params[:visibility_level]
|
2018-12-13 13:39:08 +05:30
|
|
|
|
|
|
|
= render_if_exists 'shared/projects/search_fields'
|