demarches-normaliennes/app/views/users/dossiers/_procedure_removed_banner.html.haml

21 lines
1.1 KiB
Text
Raw Normal View History

- 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|
2024-01-08 11:22:38 +01:00
- c.with_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')
- elsif !dossier.brouillon? && dossier.procedure.discarded?
2022-03-22 15:00:26 +01:00
%p
= t('users.dossiers.header.banner.procedure_deleted_dossier_en_cours_content')
2022-03-22 15:00:26 +01:00
- else
%p
= 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 }
%p
= t('users.dossiers.header.banner.contact_service_html', service_name: dossier.procedure.service.nom, service_phone_number: Phonelib.parse(dossier.procedure.service.telephone_url).full_national, service_email: dossier.procedure.service.email)
2022-03-22 15:00:26 +01:00
- if !dossier.brouillon?
= render(partial: 'users/dossiers/show/download_dossier', locals: { dossier: dossier })