demarches-normaliennes/app/views/users/dossiers/_procedure_removed_banner.html.haml
2024-07-01 17:20:55 +02:00

20 lines
1.1 KiB
Text

- 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.with_body do
- if dossier.termine? && dossier.procedure.discarded?
%p
= t('users.dossiers.header.banner.procedure_deleted_dossier_termine_content')
- elsif !dossier.brouillon? && dossier.procedure.discarded?
%p
= t('users.dossiers.header.banner.procedure_deleted_dossier_en_cours_content')
- else
%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_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)
- if !dossier.brouillon?
= render(partial: 'users/dossiers/show/download_dossier', locals: { dossier: dossier })