demarches-normaliennes/app/views/users/dossiers/show/_status_overview.html.haml

91 lines
3.4 KiB
Text
Raw Normal View History

.status-overview
2018-08-10 16:17:19 +02:00
- if !dossier.termine?
%ul.status-timeline
- if dossier.brouillon?
%li.brouillon{ class: dossier.brouillon? ? 'active' : nil }
2021-04-17 18:49:00 +02:00
= t('views.users.dossiers.show.status_overview.status_draft')
2018-08-10 16:17:19 +02:00
%li.en-construction{ class: dossier.en_construction? ? 'active' : nil }
2021-04-17 18:49:00 +02:00
= t('views.users.dossiers.show.status_overview.status_in_progress')
2018-08-10 16:17:19 +02:00
%li.en-instruction{ class: dossier.en_instruction? ? 'active' : nil }
2021-04-17 18:49:00 +02:00
= t('views.users.dossiers.show.status_overview.status_review')
2018-08-10 16:17:19 +02:00
%li.termine{ class: dossier.termine? ? 'active' : nil }
2021-04-17 18:49:00 +02:00
= t('views.users.dossiers.show.status_overview.status_completed')
2018-08-10 16:17:19 +02:00
.status-explanation
- if dossier.brouillon?
.brouillon
2019-07-11 14:16:32 +02:00
%p Votre dossier nest pas encore visible par ladministration.
2019-07-15 16:10:34 +02:00
%p Vous pouvez déposer votre dossier afin de le transmettre à ladministration. Une fois soumis, vous pourrez toujours modifier votre dossier.
2018-08-10 16:17:19 +02:00
- elsif dossier.en_construction?
.en-construction
%p
2021-07-27 12:33:19 +02:00
= t('views.users.dossiers.show.status_overview.en_construction_html')
2019-07-15 15:45:04 +02:00
= render partial: 'users/dossiers/show/estimated_delay', locals: { procedure: dossier.procedure }
2019-07-15 15:45:04 +02:00
%p
2021-07-27 12:33:19 +02:00
= t('views.users.dossiers.show.status_overview.use_mailbox_for_questions_html', mailbox_url: messagerie_dossier_url(dossier))
2019-07-15 15:45:04 +02:00
2018-08-10 16:17:19 +02:00
- elsif dossier.en_instruction?
.en-instruction
2021-04-17 18:49:00 +02:00
%p
2021-07-27 12:33:19 +02:00
= t('views.users.dossiers.show.status_overview.admin_review')
2019-07-11 14:16:32 +02:00
= render partial: 'users/dossiers/show/estimated_delay', locals: { procedure: dossier.procedure }
2018-08-10 16:17:19 +02:00
2019-07-15 15:45:04 +02:00
%p
2021-07-27 12:33:19 +02:00
= t('views.users.dossiers.show.status_overview.use_mailbox_for_questions_html', mailbox_url: messagerie_dossier_url(dossier))
2019-07-15 15:45:04 +02:00
2018-08-10 16:17:19 +02:00
- elsif dossier.accepte?
.accepte
%p.decision
2018-08-10 16:17:19 +02:00
%span.icon.accept
Votre dossier a été
= succeed '.' do
%strong accepté
- if dossier.motivation.present?
%h3 Motif de lacceptation
%blockquote= dossier.motivation
2018-08-10 16:17:19 +02:00
= render partial: 'users/dossiers/show/download_justificatif', locals: { dossier: dossier }
- if dossier.attestation.present?
.action
= link_to attestation_dossier_path(dossier), target: '_blank', rel: 'noopener', class: 'button primary' do
%span.icon.download-white
Télécharger lattestation
2018-08-10 16:17:19 +02:00
- elsif dossier.refuse?
.refuse
%p.decision
2018-08-10 16:17:19 +02:00
%span.icon.refuse
Nous sommes désolés, votre dossier a malheureusement été
= succeed '.' do
%strong refusé
- if dossier.motivation.present?
%h3 Motif du refus
%blockquote= dossier.motivation
= render partial: 'users/dossiers/show/download_justificatif', locals: { dossier: dossier }
.action
= link_to 'Envoyer un message à ladministration', messagerie_dossier_url(dossier, anchor: 'new_commentaire'), class: 'button'
2018-08-10 16:17:19 +02:00
- elsif dossier.sans_suite?
.sans-suite
%p.decision
2018-08-10 16:17:19 +02:00
%span.icon.without-continuation
Votre dossier a été classé
= succeed '.' do
%strong sans suite
= render partial: 'users/dossiers/show/download_justificatif', locals: { dossier: dossier }
- if dossier.motivation.present?
%h3 Motif du classement sans suite
%blockquote= dossier.motivation