Improve searchbar layout

This commit is contained in:
Corinne Durrmeyer 2024-05-03 16:26:37 +02:00
parent df489cc688
commit beda1814c8
No known key found for this signature in database
GPG key ID: DDC049DDA35585B6

View file

@ -11,9 +11,10 @@
- if current_user.dossiers.count > 2 || current_user.dossiers_invites.count > 2 - if current_user.dossiers.count > 2 || current_user.dossiers_invites.count > 2
.fr-col .fr-col
#search-2.fr-search-bar #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] = hidden_field_tag :procedure_id, params[:procedure_id]
= label_tag "q", t('views.users.dossiers.search.label'), class: 'fr-label' = 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" = 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 %button.fr-btn.fr-btn--sm
= t('views.users.dossiers.search.simple') = t('views.users.dossiers.search.simple')