2023-06-21 12:24:45 +02:00
|
|
|
- title = dossier.procedure.discarded? ? "procedure_deleted_title" : "procedure_close_title"
|
|
|
|
= render Dsfr::AlertComponent.new(state: :warning, title: t("users.dossiers.header.banner.#{title}"), extra_class_names: 'fr-mb-2w') do |c|
|
|
|
|
- c.body do
|
|
|
|
- if dossier.termine? && dossier.procedure.discarded?
|
2022-03-22 15:00:26 +01:00
|
|
|
%p
|
|
|
|
= t('users.dossiers.header.banner.procedure_deleted_dossier_termine_content')
|
2023-06-21 12:24:45 +02:00
|
|
|
- elsif !dossier.brouillon? && dossier.procedure.discarded?
|
2022-03-22 15:00:26 +01:00
|
|
|
%p
|
2023-06-21 12:24:45 +02:00
|
|
|
= t('users.dossiers.header.banner.procedure_deleted_dossier_en_cours_content')
|
2022-03-22 15:00:26 +01:00
|
|
|
- else
|
|
|
|
%p
|
2023-06-21 12:24:45 +02:00
|
|
|
= t('users.dossiers.header.banner.procedure_close_content')
|
2022-05-23 18:58:28 +02:00
|
|
|
|
|
|
|
= render partial: "users/dossiers/replacement_procedure", locals: { replacement_procedure: dossier.procedure.replaced_by_procedure }
|
|
|
|
|
2022-05-05 15:16:22 +02:00
|
|
|
%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)
|
2022-03-22 15:00:26 +01:00
|
|
|
|
2023-06-21 12:24:45 +02:00
|
|
|
- if !dossier.brouillon?
|
|
|
|
= render(partial: 'users/dossiers/show/print_dossier', locals: { dossier: dossier })
|