Skip to content

Commit

Permalink
Improve searchbar layout
Browse files Browse the repository at this point in the history
  • Loading branch information
inseo committed May 6, 2024
1 parent 6aef7df commit 211eb77
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions app/views/users/dossiers/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@
- if current_user.dossiers.count > 2 || current_user.dossiers_invites.count > 2
.fr-col
#search-2.fr-search-bar
= form_tag dossiers_path, method: :get, :role => "search", class: "flex width-100 fr-mb-5w" do
= form_tag dossiers_path, method: :get, :role => "search", class: "width-100 fr-mb-5w" do
= hidden_field_tag :procedure_id, params[:procedure_id]
= label_tag "q", t('views.users.dossiers.search.label'), class: 'fr-label'
= text_field_tag "q", "#{@search_terms if @search_terms.present?}", placeholder: t('views.users.dossiers.search.prompt'), class: "fr-input"
%button.fr-btn.fr-btn--sm
= t('views.users.dossiers.search.simple')
= label_tag "q", t('views.users.dossiers.search.label'), class: 'fr-label fr-mb-1w'
.flex
= text_field_tag "q", "#{@search_terms if @search_terms.present?}", placeholder: t('views.users.dossiers.search.prompt'), class: "fr-input"
%button.fr-btn.fr-btn--sm
= t('views.users.dossiers.search.simple')
- if @procedures_for_select.size > 1
.fr-col
= render Dossiers::UserProcedureFilterComponent.new(procedures_for_select: @procedures_for_select)
Expand Down

0 comments on commit 211eb77

Please sign in to comment.