views: improve Service breadcrumbs

- Make the procedure name shorter
- Capitalize the words
This commit is contained in:
Pierre de La Morinerie 2022-05-11 12:19:48 +02:00
parent 1415d1f2eb
commit c0b96bfecb
3 changed files with 8 additions and 8 deletions

View file

@ -1,8 +1,8 @@
= render partial: 'administrateurs/breadcrumbs',
locals: { steps: [link_to('Démarches', admin_procedures_path),
link_to(@procedure.libelle, admin_procedure_path(@procedure)),
link_to('choix du service', admin_services_path(procedure_id: @procedure.id)),
'modifier le service'] }
link_to(@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)),
link_to('Choix du service', admin_services_path(procedure_id: @procedure.id)),
'Modifier le service'] }
.container
%h1 Modifier le service

View file

@ -1,7 +1,7 @@
= render partial: 'administrateurs/breadcrumbs',
locals: { steps: [link_to('Démarches', admin_procedures_path),
link_to(@procedure.libelle, admin_procedure_path(@procedure)),
'choix du service'] }
link_to(@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)),
'Choix du service'] }
#services-index.container
%h1 Choix du service pour la démarche

View file

@ -1,8 +1,8 @@
= render partial: 'administrateurs/breadcrumbs',
locals: { steps: [link_to('Démarches', admin_procedures_path),
link_to(@procedure.libelle, admin_procedure_path(@procedure)),
link_to('choix du service', admin_services_path(procedure_id: @procedure.id)),
'nouveau service'] }
link_to(@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)),
link_to('Choix du service', admin_services_path(procedure_id: @procedure.id)),
'Nouveau service'] }
.container
%h1 Nouveau Service