feat(breadcrumb): seen a hardocded translation of 'Suivi des dossiers',
i18n this mistake, re-use UX wording, add breadcrumb down to Instructeurs::Dossiers#show
This commit is contained in:
parent
b8ad6f44f2
commit
cd88d054fc
11 changed files with 17 additions and 9 deletions
|
@ -1,4 +1,4 @@
|
|||
%nav.fr-mb-0.fr-breadcrumb.mt-0{ role: "navigation", aria: { label: t('you_are_here', scope: [:layouts, :breadcrumb]) } }
|
||||
%nav.fr-breadcrumb.fr-mt-0.fr-mb-1w{ role: "navigation", aria: { label: t('you_are_here', scope: [:layouts, :breadcrumb]) } }
|
||||
%button.fr-breadcrumb__button{ aria: { expanded: "false", controls: "breadcrumb-1" } }
|
||||
= t('show', scope: [:layouts, :breadcrumb])
|
||||
|
||||
|
@ -10,4 +10,4 @@
|
|||
- if i == steps.size - 1
|
||||
%li= link_to step[0], '', { aria: { current: "page" } , class: 'fr-breadcrumb__link' }
|
||||
- else
|
||||
%li= link_to "#{step[0]} - Suivi des dossiers", step[1], class: 'fr-breadcrumb__link'
|
||||
%li= link_to step[0], step[1], class: 'fr-breadcrumb__link'
|
||||
|
|
|
@ -6,6 +6,10 @@
|
|||
pour voir si l'opération est finie.
|
||||
|
||||
.sub-header
|
||||
.fr-container.flex.justify-between.align-baseline.column= render partial: 'instructeurs/breadcrumbs',
|
||||
locals: { steps: [[t('show_procedure', scope: [:layouts, :breadcrumb], libelle: dossier.procedure.libelle.truncate(22)), instructeur_procedure_path(dossier.procedure)],
|
||||
[t('show_dossier', scope: [:layouts, :breadcrumb], dossier_id: dossier.id, owner_name: dossier.owner_name)]] }
|
||||
|
||||
= render partial: 'instructeurs/dossiers/header_top', locals: { dossier: }
|
||||
= render partial: 'instructeurs/dossiers/header_bottom', locals: { dossier:, gallery_attachments: }
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
.flex
|
||||
%div
|
||||
%h1.fr-h3.fr-mb-1w
|
||||
= "Dossier nº #{dossier.id}"
|
||||
= t('show_dossier', scope: [:layouts, :breadcrumb], dossier_id: dossier.id, owner_name: dossier.owner_name)
|
||||
|
||||
= link_to dossier.procedure.libelle.truncate_words(10), instructeur_procedure_path(dossier.procedure), title: dossier.procedure.libelle, class: "fr-link"
|
||||
.fr-mt-2w.fr-badge-group
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
.sub-header
|
||||
.fr-container.flex.column
|
||||
= render partial: 'instructeurs/breadcrumbs',
|
||||
locals: { steps: [[@procedure.libelle.truncate_words(10), administrateurs_instructeur_procedure_path(@procedure)],[t('instructeurs.dossiers.header.banner.administrators_list')]] }
|
||||
locals: { steps: [[t('show_procedure', scope: [:layouts, :breadcrumb], libelle: @procedure.libelle.truncate(22)), instructeur_procedure_path(@procedure)],[t('instructeurs.dossiers.header.banner.administrators_list')]] }
|
||||
|
||||
= render partial: 'instructeurs/procedures/header',
|
||||
locals: { procedure: @procedure }
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
.sub-header
|
||||
.fr-container.flex.column
|
||||
= render partial: 'instructeurs/breadcrumbs',
|
||||
locals: { steps: [[@procedure.libelle.truncate_words(10), instructeur_procedure_path(@procedure)],
|
||||
locals: { steps: [[t('show_procedure', scope: [:layouts, :breadcrumb], libelle: @procedure.libelle.truncate(22)), instructeur_procedure_path(@procedure)],
|
||||
['Historique des dossiers supprimés']] }
|
||||
|
||||
= render partial: 'instructeurs/procedures/header',
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
.sub-header
|
||||
.fr-container.flex.column
|
||||
= render partial: 'instructeurs/breadcrumbs',
|
||||
locals: { steps: [[@procedure.libelle.truncate_words(10), instructeur_procedure_path(@procedure)],
|
||||
locals: { steps: [[t('show_procedure', scope: [:layouts, :breadcrumb], libelle: @procedure.libelle.truncate(22)), instructeur_procedure_path(@procedure)],
|
||||
[t('instructeurs.dossiers.header.banner.notification_management')]] }
|
||||
= render partial: 'instructeurs/procedures/header',
|
||||
locals: { procedure: @procedure }
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
.sub-header
|
||||
.fr-container.flex.column
|
||||
= render partial: 'instructeurs/breadcrumbs',
|
||||
locals: { steps: [[@procedure.libelle.truncate_words(10), instructeur_procedure_path(@procedure)],
|
||||
locals: { steps: [[t('show_procedure', scope: [:layouts, :breadcrumb], libelle: @procedure.libelle.truncate(22)), instructeur_procedure_path(@procedure)],
|
||||
[t('instructeurs.dossiers.header.banner.contact_users')]] }
|
||||
= render partial: 'instructeurs/procedures/header',
|
||||
locals: { procedure: @procedure }
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
.sub-header
|
||||
.fr-container.flex.column
|
||||
= render partial: 'instructeurs/breadcrumbs',
|
||||
locals: { steps: [[@procedure.libelle.truncate_words(10), instructeur_procedure_path(@procedure)]] }
|
||||
locals: { steps: [[t('show_procedure', scope: [:layouts, :breadcrumb], libelle: @procedure.libelle.truncate(22)), instructeur_procedure_path(@procedure)]] }
|
||||
= render partial: 'header', locals: { procedure: @procedure, statut: @statut }
|
||||
%hr
|
||||
%h1.fr-h5.fr-mb-0= t('.file_tracking')
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
.sub-header
|
||||
.fr-container.flex.column
|
||||
= render partial: 'instructeurs/breadcrumbs',
|
||||
locals: { steps: [[@procedure.libelle.truncate_words(10), instructeur_procedure_path(@procedure)],
|
||||
locals: { steps: [[t('show_procedure', scope: [:layouts, :breadcrumb], libelle: @procedure.libelle.truncate(22)), instructeur_procedure_path(@procedure)],
|
||||
[t('instructeurs.dossiers.header.banner.statistics')]] }
|
||||
|
||||
= render partial: 'instructeurs/procedures/header',
|
||||
|
|
|
@ -16,3 +16,5 @@ en:
|
|||
go_to_FAQ: "read FAQ"
|
||||
url_FAQ: "/faq#accordion-administrateur-2"
|
||||
faq: Frequently Asked Questions
|
||||
show_dossier: "File nº %{dossier_id} – %{owner_name}"
|
||||
show_procedure: '%{libelle} – Files'
|
||||
|
|
|
@ -16,3 +16,5 @@ fr:
|
|||
go_to_FAQ: "consulter la FAQ"
|
||||
url_FAQ: "/faq#accordion-administrateur-2"
|
||||
faq: Foire aux Questions
|
||||
show_dossier: "Dossier nº %{dossier_id} – %{owner_name}"
|
||||
show_procedure: '%{libelle} – Suivi des dossiers'
|
||||
|
|
Loading…
Reference in a new issue