diff --git a/app/views/administrateurs/procedures/new.html.haml b/app/views/administrateurs/procedures/new.html.haml index 43badaf1f..e5c57ad64 100644 --- a/app/views/administrateurs/procedures/new.html.haml +++ b/app/views/administrateurs/procedures/new.html.haml @@ -2,7 +2,7 @@ = render partial: 'administrateurs/breadcrumbs', locals: { steps: [['Démarches', admin_procedures_path], - 'Nouvelle'] } + ['Nouvelle']] } .procedure-form .procedure-form__columns.container diff --git a/app/views/administrateurs/types_de_champ/_insert.turbo_stream.haml b/app/views/administrateurs/types_de_champ/_insert.turbo_stream.haml index 6373e5d9f..5c02de136 100644 --- a/app/views/administrateurs/types_de_champ/_insert.turbo_stream.haml +++ b/app/views/administrateurs/types_de_champ/_insert.turbo_stream.haml @@ -1,7 +1,7 @@ = turbo_stream.replace 'breadcrumbs' , render(partial: 'administrateurs/breadcrumbs', - locals: { steps: [link_to('Démarches', admin_procedures_path), - link_to(@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)), - 'Configuration des champs'], + locals: { steps: [['Démarches', admin_procedures_path], + [@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)], + ['Configuration des champs']], preview: @procedure.draft_revision.valid? }) = turbo_stream.replace 'errors-summary', render(TypesDeChampEditor::ErrorsSummary.new(revision: @procedure.draft_revision))