optimization navigation accessibility
This commit is contained in:
parent
7c872be29c
commit
2db959531a
4 changed files with 417 additions and 462 deletions
|
@ -5,7 +5,7 @@
|
|||
= link_to "Nouvelle Démarche", new_from_existing_admin_procedures_path, id: 'new-procedure', class: 'fr-btn'
|
||||
.fr-container
|
||||
|
||||
%nav.tabs
|
||||
%nav.tabs{ role: 'navigation', "aria-label" => t('views.users.dossiers.label_navigation') }
|
||||
%ul
|
||||
= tab_item(t('pluralize.published', count: @procedures_publiees.count), admin_procedures_path(statut: 'publiees'), active: @statut == 'publiees', badge: number_with_html_delimiter(@procedures_publiees_count))
|
||||
= tab_item('En test', admin_procedures_path(statut: 'brouillons'), active: @statut == 'brouillons', badge: number_with_html_delimiter(@procedures_draft_count))
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#search-modal.fr-header__search.fr-modal
|
||||
#search-modal.fr-header__search.fr-modal{ "aria-label" => t('views.users.dossiers.search.search_file') }
|
||||
.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
|
||||
#search-473.fr-search-bar.fr-search-bar--lg
|
||||
= 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.placeholder'), class: "fr-input"
|
||||
%button.fr-btn{ title: t('views.users.dossiers.search.search_file') }
|
||||
= t('views.users.dossiers.search.search_file')
|
||||
= text_field_tag "q", "#{@search_terms if @search_terms.present?}", placeholder: t('views.users.dossiers.search.search_file'), class: "fr-input"
|
||||
%button.fr-btn
|
||||
= t('views.users.dossiers.search.simple')
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
- else
|
||||
%h1.page-title= t('views.users.dossiers.index.dossiers')
|
||||
%nav.tabs
|
||||
%nav.tabs{ role: 'navigation', "aria-label" => t('views.users.dossiers.label_navigation') }
|
||||
%ul
|
||||
- if @user_dossiers.present?
|
||||
= tab_item(t('pluralize.en_cours', count: @user_dossiers.count),
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue