fix(breadcrumb): extends breadcrumb libelle truncation from 4 to 10 words
This commit is contained in:
parent
062477dede
commit
f08d4e9dc0
33 changed files with 34 additions and 34 deletions
|
@ -1,6 +1,6 @@
|
|||
= render partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [['Démarches', admin_procedures_path],
|
||||
[@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)],
|
||||
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
||||
['Export et Archives']] }
|
||||
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
= render partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [['Démarches', admin_procedures_path],
|
||||
[@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)],
|
||||
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
||||
['Attestation']] }
|
||||
|
||||
.procedure-form#attestation-template-edit
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
= render partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [['Démarches', admin_procedures_path],
|
||||
[@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)],
|
||||
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
||||
['Fin de dépot']] }
|
||||
|
||||
.procedure-form
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
= render partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [['Démarches', admin_procedures_path],
|
||||
[@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)],
|
||||
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
||||
['Liste des experts']] }
|
||||
|
||||
.container
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
- if @procedure.routee?
|
||||
= render partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [[t('.procedures'), admin_procedures_path],
|
||||
[@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)],
|
||||
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
||||
[t('.instructors_group')]] }
|
||||
- else
|
||||
= render partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [[t('.procedures'), admin_procedures_path],
|
||||
[@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)],
|
||||
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
||||
['Instructeurs']] }
|
||||
|
||||
.container.groupe-instructeur
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
= render partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [['Démarches', admin_procedures_path],
|
||||
[@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)],
|
||||
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
||||
['Groupes d’instructeurs', admin_procedure_groupe_instructeurs_path(@procedure)],
|
||||
[@groupe_instructeur.label]] }
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
= render partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [['Démarches', admin_procedures_path],
|
||||
[@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)],
|
||||
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
||||
['Groupes d’instructeurs', admin_procedure_groupe_instructeurs_path(@procedure)],
|
||||
[@groupe_instructeur.label]] }
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
= render partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [['Démarches', admin_procedures_path],
|
||||
[@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)],
|
||||
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
||||
[Procedure.human_attribute_name(:jeton_api_particulier)]] }
|
||||
|
||||
.container
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
= render partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [['Démarches', admin_procedures_path],
|
||||
[@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)],
|
||||
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
||||
[Procedure.human_attribute_name(:jeton_api_particulier), admin_procedure_api_particulier_path(@procedure)],
|
||||
['Jeton']] }
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
= render partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [['Démarches', admin_procedures_path],
|
||||
[@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)],
|
||||
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
||||
["Emails", admin_procedure_mail_templates_path(@procedure)],
|
||||
[@mail_template.class.const_get(:DISPLAYED_NAME)]] }
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
= render partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [['Démarches', admin_procedures_path],
|
||||
["#{@procedure.libelle.truncate_words(4)}", admin_procedure_path(@procedure)],
|
||||
["#{@procedure.libelle.truncate_words(10)}", admin_procedure_path(@procedure)],
|
||||
["Configuration des emails"]] }
|
||||
|
||||
.container
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
= render partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [['Démarches', admin_procedures_path],
|
||||
[@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)],
|
||||
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
||||
['Administrateurs']], preview: false }
|
||||
|
||||
.container
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
= render partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [['Démarches', admin_procedures_path],
|
||||
[@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)],
|
||||
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
||||
['Configuration des annotations privées']], preview: true }
|
||||
|
||||
.container
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
= render partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [['Démarches', admin_procedures_path],
|
||||
[@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)],
|
||||
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
||||
['Configuration des champs']], preview: @procedure.draft_revision.valid? }
|
||||
|
||||
.container
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
= render partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [['Démarches', admin_procedures_path],
|
||||
["#{@procedure.libelle.truncate_words(4)} - archiver"]],
|
||||
["#{@procedure.libelle.truncate_words(10)} - archiver"]],
|
||||
metadatas: true }
|
||||
|
||||
.container
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
= render partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [['Démarches', admin_procedures_path],
|
||||
[@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)],
|
||||
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
||||
['Description']] }
|
||||
.procedure-form
|
||||
.procedure-form__columns.container
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
= render partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [['Démarches', admin_procedures_path],
|
||||
[@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)],
|
||||
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
||||
['Jeton']] }
|
||||
|
||||
.container
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
= render partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [['Démarches', admin_procedures_path],
|
||||
[@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)],
|
||||
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
||||
['Modifications']] }
|
||||
.container
|
||||
%h1.page-title
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
= render partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [['Démarches', admin_procedures_path],
|
||||
[@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)],
|
||||
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
||||
['MonAvis']] }
|
||||
|
||||
.container
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
= render partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [['Démarches', admin_procedures_path],
|
||||
[@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)],
|
||||
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
||||
['Publication']] }
|
||||
.container
|
||||
- if @procedure.draft_types_de_champ.dubious.present?
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
= render partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [['Démarches', admin_procedures_path],
|
||||
["#{@procedure.libelle.truncate_words(4)}"]],
|
||||
["#{@procedure.libelle.truncate_words(10)}"]],
|
||||
metadatas: true }
|
||||
|
||||
.container.procedure-admin-container
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
= render partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [['Démarches', admin_procedures_path],
|
||||
[@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)],
|
||||
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
||||
['Transfert']] }
|
||||
.container
|
||||
= render partial: 'procedure_transfert'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
= render partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [['Démarches', admin_procedures_path],
|
||||
[@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)],
|
||||
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
||||
['Choix du service', admin_services_path(procedure_id: @procedure.id)],
|
||||
['Modifier le service']] }
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
= render partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [['Démarches', admin_procedures_path],
|
||||
[@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)],
|
||||
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
||||
['Choix du service']] }
|
||||
|
||||
#services-index.container
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
= render partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [['Démarches', admin_procedures_path],
|
||||
[@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)],
|
||||
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
||||
['Choix du service', admin_services_path(procedure_id: @procedure.id)],
|
||||
['Nouveau service']] }
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
= render partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [['Démarches', admin_procedures_path],
|
||||
[@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)],
|
||||
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
||||
[Procedure.human_attribute_name(:jeton_api_particulier), admin_procedure_api_particulier_path(@procedure)],
|
||||
[t('.data_sources')]] }
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
= turbo_stream.replace 'breadcrumbs' , render(partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [['Démarches', admin_procedures_path],
|
||||
[@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)],
|
||||
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
||||
['Configuration des champs']],
|
||||
preview: @procedure.draft_revision.valid? })
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
- content_for(:title, "Archives pour #{@procedure.libelle}")
|
||||
|
||||
= render partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [[@procedure.libelle.truncate_words(4), instructeur_procedure_path(@procedure)],
|
||||
locals: { steps: [[@procedure.libelle.truncate_words(10), instructeur_procedure_path(@procedure)],
|
||||
['Archives']] }
|
||||
|
||||
.container
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
- content_for(:title, "Notifications pour #{@procedure.libelle}")
|
||||
|
||||
= render partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [[@procedure.libelle.truncate_words(4), instructeur_procedure_path(@procedure)],
|
||||
locals: { steps: [[@procedure.libelle.truncate_words(10), instructeur_procedure_path(@procedure)],
|
||||
['Groupes d’instructeurs']] }
|
||||
|
||||
.container.groupe-instructeur
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
- content_for(:title, "Instructeurs du groupe #{@groupe_instructeur.label}")
|
||||
|
||||
= render partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [[@procedure.libelle.truncate_words(4), instructeur_procedure_path(@procedure)],
|
||||
locals: { steps: [[@procedure.libelle.truncate_words(10), instructeur_procedure_path(@procedure)],
|
||||
['Groupes d’instructeurs', instructeur_groupes_path(@procedure)],
|
||||
[@groupe_instructeur.label]] }
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
- content_for(:title, "Notifications pour #{@procedure.libelle}")
|
||||
|
||||
= render partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [[@procedure.libelle.truncate_words(4), instructeur_procedure_path(@procedure)],
|
||||
locals: { steps: [[@procedure.libelle.truncate_words(10), instructeur_procedure_path(@procedure)],
|
||||
['Notifications']] }
|
||||
|
||||
.container
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
- content_for(:title, "Contacter les usagers pour #{@procedure.libelle}")
|
||||
|
||||
= render partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [[@procedure.libelle.truncate_words(4), instructeur_procedure_path(@procedure)],
|
||||
locals: { steps: [[@procedure.libelle.truncate_words(10), instructeur_procedure_path(@procedure)],
|
||||
[t('.contact_users')]] }
|
||||
.messagerie.container
|
||||
- if @email_usagers_dossiers.present?
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
- content_for(:title, title)
|
||||
|
||||
= render partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [[@procedure.libelle.truncate_words(4), instructeur_procedure_path(@procedure)],
|
||||
locals: { steps: [[@procedure.libelle.truncate_words(10), instructeur_procedure_path(@procedure)],
|
||||
[t('.title')]] }
|
||||
|
||||
= render partial: 'shared/procedures/stats', locals: { title: title }
|
||||
|
|
Loading…
Reference in a new issue