2018-09-05 11:50:43 +02:00
|
|
|
|
.status-overview
|
2018-08-10 16:17:19 +02:00
|
|
|
|
- if !dossier.termine?
|
|
|
|
|
%ul.status-timeline
|
2018-09-17 15:21:47 +02:00
|
|
|
|
- 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 n’est pas encore visible par l’administration.
|
2019-07-15 16:10:34 +02:00
|
|
|
|
%p Vous pouvez déposer votre dossier afin de le transmettre à l’administration. Une fois soumis, vous pourrez toujours modifier votre dossier.
|
2018-08-10 16:17:19 +02:00
|
|
|
|
|
|
|
|
|
- elsif dossier.en_construction?
|
|
|
|
|
.en-construction
|
2018-09-17 15:22:02 +02:00
|
|
|
|
%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
|
|
|
|
|
2019-04-10 16:29:03 +02:00
|
|
|
|
= render partial: 'users/dossiers/show/estimated_delay', locals: { procedure: dossier.procedure }
|
2018-09-18 17:47:41 +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.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
|
|
|
|
|
2019-04-10 16:29:03 +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
|
2018-09-17 16:02:58 +02:00
|
|
|
|
%p.decision
|
2018-08-10 16:17:19 +02:00
|
|
|
|
%span.icon.accept
|
|
|
|
|
Votre dossier a été
|
|
|
|
|
= succeed '.' do
|
|
|
|
|
%strong accepté
|
|
|
|
|
|
2018-09-17 16:02:58 +02:00
|
|
|
|
- if dossier.motivation.present?
|
|
|
|
|
%h3 Motif de l’acceptation
|
|
|
|
|
%blockquote= dossier.motivation
|
2018-08-10 16:17:19 +02:00
|
|
|
|
|
2019-05-22 12:00:05 +02:00
|
|
|
|
= render partial: 'users/dossiers/show/download_justificatif', locals: { dossier: dossier }
|
2019-02-18 17:52:15 +01:00
|
|
|
|
|
2018-09-17 16:02:58 +02:00
|
|
|
|
- if dossier.attestation.present?
|
|
|
|
|
.action
|
2019-03-05 18:16:13 +01:00
|
|
|
|
= link_to attestation_dossier_path(dossier), target: '_blank', rel: 'noopener', class: 'button primary' do
|
2019-10-15 12:42:51 +02:00
|
|
|
|
%span.icon.download-white
|
2018-09-17 16:02:58 +02:00
|
|
|
|
Télécharger l’attestation
|
2018-09-17 14:45:40 +02:00
|
|
|
|
|
2019-02-18 17:52:15 +01:00
|
|
|
|
|
2018-08-10 16:17:19 +02:00
|
|
|
|
- elsif dossier.refuse?
|
|
|
|
|
.refuse
|
2018-09-17 16:02:58 +02:00
|
|
|
|
%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
|
|
|
|
|
|
2019-05-22 12:00:05 +02:00
|
|
|
|
= render partial: 'users/dossiers/show/download_justificatif', locals: { dossier: dossier }
|
2018-09-17 16:02:58 +02:00
|
|
|
|
.action
|
|
|
|
|
= link_to 'Envoyer un message à l’administration', messagerie_dossier_url(dossier, anchor: 'new_commentaire'), class: 'button'
|
2018-09-17 14:48:04 +02:00
|
|
|
|
|
2018-08-10 16:17:19 +02:00
|
|
|
|
- elsif dossier.sans_suite?
|
|
|
|
|
.sans-suite
|
2018-09-17 16:02:58 +02:00
|
|
|
|
%p.decision
|
2018-08-10 16:17:19 +02:00
|
|
|
|
%span.icon.without-continuation
|
|
|
|
|
Votre dossier a été classé
|
|
|
|
|
= succeed '.' do
|
|
|
|
|
%strong sans suite
|
|
|
|
|
|
2019-05-22 12:00:05 +02:00
|
|
|
|
= render partial: 'users/dossiers/show/download_justificatif', locals: { dossier: dossier }
|
2019-02-18 17:52:15 +01:00
|
|
|
|
|
2018-09-17 16:02:58 +02:00
|
|
|
|
- if dossier.motivation.present?
|
|
|
|
|
%h3 Motif du classement sans suite
|
|
|
|
|
%blockquote= dossier.motivation
|