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:
mfo 2024-11-20 14:45:13 +01:00
parent b8ad6f44f2
commit cd88d054fc
No known key found for this signature in database
GPG key ID: 7CE3E1F5B794A8EC
11 changed files with 17 additions and 9 deletions

View file

@ -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" } } %button.fr-breadcrumb__button{ aria: { expanded: "false", controls: "breadcrumb-1" } }
= t('show', scope: [:layouts, :breadcrumb]) = t('show', scope: [:layouts, :breadcrumb])
@ -10,4 +10,4 @@
- if i == steps.size - 1 - if i == steps.size - 1
%li= link_to step[0], '', { aria: { current: "page" } , class: 'fr-breadcrumb__link' } %li= link_to step[0], '', { aria: { current: "page" } , class: 'fr-breadcrumb__link' }
- else - 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'

View file

@ -6,6 +6,10 @@
pour voir si l'opération est finie. pour voir si l'opération est finie.
.sub-header .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_top', locals: { dossier: }
= render partial: 'instructeurs/dossiers/header_bottom', locals: { dossier:, gallery_attachments: } = render partial: 'instructeurs/dossiers/header_bottom', locals: { dossier:, gallery_attachments: }

View file

@ -2,7 +2,7 @@
.flex .flex
%div %div
%h1.fr-h3.fr-mb-1w %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" = 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 .fr-mt-2w.fr-badge-group

View file

@ -3,7 +3,7 @@
.sub-header .sub-header
.fr-container.flex.column .fr-container.flex.column
= render partial: 'instructeurs/breadcrumbs', = 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', = render partial: 'instructeurs/procedures/header',
locals: { procedure: @procedure } locals: { procedure: @procedure }

View file

@ -3,7 +3,7 @@
.sub-header .sub-header
.fr-container.flex.column .fr-container.flex.column
= render partial: 'instructeurs/breadcrumbs', = 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']] } ['Historique des dossiers supprimés']] }
= render partial: 'instructeurs/procedures/header', = render partial: 'instructeurs/procedures/header',

View file

@ -3,7 +3,7 @@
.sub-header .sub-header
.fr-container.flex.column .fr-container.flex.column
= render partial: 'instructeurs/breadcrumbs', = 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')]] } [t('instructeurs.dossiers.header.banner.notification_management')]] }
= render partial: 'instructeurs/procedures/header', = render partial: 'instructeurs/procedures/header',
locals: { procedure: @procedure } locals: { procedure: @procedure }

View file

@ -3,7 +3,7 @@
.sub-header .sub-header
.fr-container.flex.column .fr-container.flex.column
= render partial: 'instructeurs/breadcrumbs', = 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')]] } [t('instructeurs.dossiers.header.banner.contact_users')]] }
= render partial: 'instructeurs/procedures/header', = render partial: 'instructeurs/procedures/header',
locals: { procedure: @procedure } locals: { procedure: @procedure }

View file

@ -4,7 +4,7 @@
.sub-header .sub-header
.fr-container.flex.column .fr-container.flex.column
= render partial: 'instructeurs/breadcrumbs', = 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 } = render partial: 'header', locals: { procedure: @procedure, statut: @statut }
%hr %hr
%h1.fr-h5.fr-mb-0= t('.file_tracking') %h1.fr-h5.fr-mb-0= t('.file_tracking')

View file

@ -4,7 +4,7 @@
.sub-header .sub-header
.fr-container.flex.column .fr-container.flex.column
= render partial: 'instructeurs/breadcrumbs', = 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')]] } [t('instructeurs.dossiers.header.banner.statistics')]] }
= render partial: 'instructeurs/procedures/header', = render partial: 'instructeurs/procedures/header',

View file

@ -16,3 +16,5 @@ en:
go_to_FAQ: "read FAQ" go_to_FAQ: "read FAQ"
url_FAQ: "/faq#accordion-administrateur-2" url_FAQ: "/faq#accordion-administrateur-2"
faq: Frequently Asked Questions faq: Frequently Asked Questions
show_dossier: "File nº %{dossier_id} %{owner_name}"
show_procedure: '%{libelle} Files'

View file

@ -16,3 +16,5 @@ fr:
go_to_FAQ: "consulter la FAQ" go_to_FAQ: "consulter la FAQ"
url_FAQ: "/faq#accordion-administrateur-2" url_FAQ: "/faq#accordion-administrateur-2"
faq: Foire aux Questions faq: Foire aux Questions
show_dossier: "Dossier nº %{dossier_id} %{owner_name}"
show_procedure: '%{libelle} Suivi des dossiers'