update structure search engine

This commit is contained in:
Julie Salha 2023-01-26 14:11:21 +01:00
parent 8af5ba434b
commit 5f3ac1c61c
3 changed files with 8 additions and 8 deletions

View file

@ -1,11 +1,9 @@
#search-modal.fr-header__search.fr-modal
.fr-container.fr-container-lg--fluid
%button.fr-btn--close.fr-btn{ "aria-controls" => "search-modal", :title => t('close_modal', scope: [:layouts, :header]) }= t('close_modal', scope: [:layouts, :header])
#search-473.fr-search-bar{ :role => "search" }
= form_tag "#{search_endpoint}", method: :get, class: "flex width-100" do
#search-473.fr-search-bar
= form_tag "#{search_endpoint}", method: :get, :role => "search", class: "flex width-100" 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'), aria: { label: t('views.users.dossiers.search.search_file') }, class: "fr-input"
= text_field_tag "q", "#{@search_terms if @search_terms.present?}", placeholder: t('views.users.dossiers.search.placeholder'), class: "fr-input"
%button.fr-btn{ title: t('views.users.dossiers.search.search_file') }
= image_tag "icons/search-blue.svg", alt: t('views.users.dossiers.search.search_file'), 'aria-hidden':'true', width: 24, height: 24, loading: 'lazy'
= t('views.users.dossiers.search.search_file')

View file

@ -313,7 +313,8 @@ en:
demande:
edit_dossier: "Edit file"
search:
search_file: Search a file
placeholder: Search a file
search_file: Search
index:
dossiers: "Files"
dossiers_list:

View file

@ -309,7 +309,8 @@ fr:
demande:
edit_dossier: "Modifier le dossier"
search:
search_file: Rechercher un dossier
placeholder: Rechercher un dossier
search_file: Rechercher
index:
dossiers: "Dossiers"
dossiers_list: