2019-07-31 22:56:46 +05:30
|
|
|
- form_field_classes = local_assigns[:admin_view] || !Feature.enabled?(:project_list_filter_bar) ? 'input-short js-projects-list-filter' : ''
|
|
|
|
- placeholder = local_assigns[:search_form_placeholder] ? search_form_placeholder : 'Filter by name...'
|
|
|
|
|
2019-09-04 21:01:54 +05:30
|
|
|
= form_tag filter_projects_path, method: :get, class: 'project-filter-form qa-project-filter-form', 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'
|