Merge pull request #9096 from demarches-simplifiees/8588-search-engine-footer-optimization

8588 search engine footer optimization
This commit is contained in:
Julie Salha 2023-05-30 14:18:21 +00:00 committed by GitHub
commit 8de63dfdd0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 3 deletions

View file

@ -10,7 +10,7 @@
.container
%h1.page-title.fr-h2= t('views.users.dossiers.index.dossiers')
- if current_user.dossiers.count > 2
#search-2.fr-search-bar.fr-search-bar--lg{ role: "search", "aria-label": t('views.users.dossiers.search.search_file') }
#search-2.fr-search-bar.fr-search-bar--lg
= form_tag recherche_dossiers_path, method: :get, :role => "search", class: "flex width-100 fr-mb-5w" do
= label_tag "q", t('views.users.dossiers.search.search_file'), class: 'fr-label'
= text_field_tag "q", "#{@search_terms if @search_terms.present?}", placeholder: t('views.users.dossiers.search.search_file'), class: "fr-input"

View file

@ -18,3 +18,5 @@
= f.hidden_field :dossier, value: @dossier.id
= f.submit t('.submit'), class: 'fr-btn'
- content_for :footer do
= render partial: 'users/dossiers/index_footer'

View file

@ -448,7 +448,7 @@ en:
demande:
edit_dossier: "Edit file"
search:
search_file: Search a file
search_file: Search a file (File number, keywords)
simple: Search
secondary_menu: Secondary menu
index:

View file

@ -449,7 +449,7 @@ fr:
demande:
edit_dossier: "Modifier le dossier"
search:
search_file: Rechercher un dossier
search_file: Rechercher un dossier (N° de dossier, mots-clés)
simple: Rechercher
secondary_menu: Menu secondaire
index: