gitlab-org--gitlab-foss/app/views/shared/groups/_search_form.html.haml
Mark Lapierre 8589fa871e Optimize groups filter
When searching for a group, submit a request that returns only the
filtered list of groups. This makes the state of the page more
reliable because it avoids having to wait for the list of groups to
dynamically refresh.
2018-09-28 14:36:49 -04:00

2 lines
362 B
Text

= form_tag request.path, method: :get, class: "group-filter-form js-group-filter-form", id: 'group-filter-form' do |f|
= search_field_tag :filter, params[:filter], placeholder: s_('GroupsTree|Search by name'), class: 'group-filter-form-field form-control js-groups-list-filter qa-groups-filter', spellcheck: false, id: 'group-filter-form-field', tabindex: "2"