2021-11-26 14:31:30 +01:00
|
|
|
-# small expires mention
|
|
|
|
- if dossier.expirable?
|
2021-12-02 16:19:17 +01:00
|
|
|
%p.expires_at.mb-2
|
|
|
|
%small= t("shared.dossiers.header.expires_at.#{dossier.state}", date: safe_expiration_date(dossier), duree_conservation_totale: dossier.duree_totale_conservation_in_months)
|
2021-11-26 14:31:30 +01:00
|
|
|
-# big banner warning
|
|
|
|
- if dossier.close_to_expiration?
|
2021-12-02 16:19:17 +01:00
|
|
|
.card.warning.mb-3
|
|
|
|
.card-title= t('users.dossiers.header.banner.title')
|
2021-11-26 14:31:30 +01:00
|
|
|
%p
|
|
|
|
- if dossier.brouillon?
|
2021-12-02 16:19:17 +01:00
|
|
|
= t('users.dossiers.header.banner.states.brouillon')
|
2021-11-26 14:31:30 +01:00
|
|
|
- elsif dossier.en_construction?
|
2021-12-02 16:19:17 +01:00
|
|
|
= t('users.dossiers.header.banner.states.en_construction')
|
2021-11-26 14:31:30 +01:00
|
|
|
- elsif dossier.termine?
|
2021-12-02 16:19:17 +01:00
|
|
|
= t('users.dossiers.header.banner.states.termine')
|
2021-11-26 14:31:30 +01:00
|
|
|
|
|
|
|
- if dossier.expiration_can_be_extended?
|
|
|
|
%br
|
2021-12-03 16:09:51 +01:00
|
|
|
= button_to users_dossier_repousser_expiration_path(dossier), class: 'button mt-2', id: 'test-user-repousser-expiration' do
|
|
|
|
%span.icon.standby
|
|
|
|
= t('users.dossiers.header.banner.button_delay_expiration', duree_conservation_dossiers_dans_ds: dossier.procedure.duree_conservation_dossiers_dans_ds)
|
2021-11-26 14:31:30 +01:00
|
|
|
|
|
|
|
|
|
|
|
- else
|
|
|
|
%p.expires_at_en_instruction
|
|
|
|
%small= t("shared.dossiers.header.expires_at.en_instruction")
|
|
|
|
|