From 8df81b365ea682742cc3097f25fa5be20c7a97db Mon Sep 17 00:00:00 2001 From: Kara Diaby Date: Mon, 23 May 2022 18:58:28 +0200 Subject: [PATCH] layout --- .../administrateurs/procedures/_publication_form.html.haml | 3 +++ app/views/users/dossiers/_procedure_removed_banner.html.haml | 4 ++++ app/views/users/dossiers/_replacement_procedure.html.haml | 3 +++ 3 files changed, 10 insertions(+) create mode 100644 app/views/users/dossiers/_replacement_procedure.html.haml diff --git a/app/views/administrateurs/procedures/_publication_form.html.haml b/app/views/administrateurs/procedures/_publication_form.html.haml index aaae4eca8..9f8792533 100644 --- a/app/views/administrateurs/procedures/_publication_form.html.haml +++ b/app/views/administrateurs/procedures/_publication_form.html.haml @@ -28,6 +28,9 @@ style: 'width: 300px; display: inline;') .text-info.mb-4 Attention, diffusez toujours le lien complet affiché ci-dessus, et non pas un lien générique vers #{APPLICATION_NAME}. Ne dites pas non plus aux usagers de se rendre sur le site générique #{APPLICATION_NAME}, donnez-leur toujours le lien complet. + - if @closed_procedures.present? + %h2.card-title Cette démarche remplace une close ? Si oui, veuillez indiquer le n° de la démarche remplacée + = select_tag :old_procedure, options_for_select(@closed_procedures), include_blank: true %h2.card-title Diffusion de la démarche %p Où les utilisateurs trouveront-ils le lien de la démarche ? Typiquement, il s’agit d’une page de votre site web. %p.center diff --git a/app/views/users/dossiers/_procedure_removed_banner.html.haml b/app/views/users/dossiers/_procedure_removed_banner.html.haml index 5bd763c47..eb22c5f4d 100644 --- a/app/views/users/dossiers/_procedure_removed_banner.html.haml +++ b/app/views/users/dossiers/_procedure_removed_banner.html.haml @@ -12,6 +12,8 @@ - else %p = t('users.dossiers.header.banner.procedure_deleted_dossier_en_cours_content') + + = render partial: "users/dossiers/replacement_procedure", locals: { replacement_procedure: dossier.procedure.replaced_by_procedure } %p = t('users.dossiers.header.banner.contact_service', service_name: dossier.procedure.service.nom, service_phone_number: dossier.procedure.service.telephone, service_email: dossier.procedure.service.email) @@ -21,6 +23,8 @@ = render(partial: 'users/dossiers/show/print_dossier', locals: { dossier: dossier }) if !dossier.brouillon? %p = t('users.dossiers.header.banner.procedure_close_content') + + = render partial: "users/dossiers/replacement_procedure", locals: { replacement_procedure: dossier.procedure.replaced_by_procedure } %p = t('users.dossiers.header.banner.contact_service', service_name: dossier.procedure.service.nom, service_phone_number: dossier.procedure.service.telephone, service_email: dossier.procedure.service.email) diff --git a/app/views/users/dossiers/_replacement_procedure.html.haml b/app/views/users/dossiers/_replacement_procedure.html.haml new file mode 100644 index 000000000..b4c5754af --- /dev/null +++ b/app/views/users/dossiers/_replacement_procedure.html.haml @@ -0,0 +1,3 @@ +- if replacement_procedure.present? + %p + #{t('users.dossiers.header.banner.new_procedure_content')} #{link_to t('users.dossiers.header.banner.new_procedure_link'), commencer_path(replacement_procedure.path)}