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
|
2022-12-12 09:15:21 +01:00
|
|
|
-# brouillon does not occure
|
|
|
|
- if dossier.en_construction?
|
2018-08-10 16:17:19 +02:00
|
|
|
.en-construction
|
2022-12-12 09:15:21 +01:00
|
|
|
%p{ role: 'status' }
|
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
|
2023-01-03 16:17:21 +01:00
|
|
|
%p{ role: 'status' }
|
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
|
2023-01-03 16:17:21 +01:00
|
|
|
%p.decision{ role: 'status' }
|
2018-08-10 16:17:19 +02:00
|
|
|
%span.icon.accept
|
2022-12-12 09:15:21 +01:00
|
|
|
= t('views.users.dossiers.show.status_overview.acceptee_html')
|
2018-08-10 16:17:19 +02:00
|
|
|
|
2018-09-17 16:02:58 +02:00
|
|
|
- if dossier.motivation.present?
|
2022-12-12 09:15:21 +01:00
|
|
|
%h3= t('views.users.dossiers.show.status_overview.accepte_motivation')
|
2018-09-17 16:02:58 +02:00
|
|
|
%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
|
2022-12-12 09:15:21 +01:00
|
|
|
= t('views.users.dossiers.show.status_overview.accepte_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
|
2023-01-03 16:17:21 +01:00
|
|
|
%p.decision{ role: 'status' }
|
2018-08-10 16:17:19 +02:00
|
|
|
%span.icon.refuse
|
2022-12-12 09:15:21 +01:00
|
|
|
= t('views.users.dossiers.show.status_overview.refuse_html')
|
2018-08-10 16:17:19 +02:00
|
|
|
|
|
|
|
- if dossier.motivation.present?
|
2022-12-12 09:15:21 +01:00
|
|
|
%h3= t('views.users.dossiers.show.status_overview.refuse_motivation')
|
2018-08-10 16:17:19 +02:00
|
|
|
%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
|
2022-12-12 09:15:21 +01:00
|
|
|
= link_to t('views.users.dossiers.show.status_overview.refuse_reply'), 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
|
2023-01-03 16:17:21 +01:00
|
|
|
%p.decision{ role: 'status' }
|
2018-08-10 16:17:19 +02:00
|
|
|
%span.icon.without-continuation
|
2022-12-12 09:15:21 +01:00
|
|
|
= t('views.users.dossiers.show.status_overview.sans_suite_html')
|
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.motivation.present?
|
2022-12-12 09:15:21 +01:00
|
|
|
%h3= t('views.users.dossiers.show.status_overview.sans_suite_motivation')
|
2018-09-17 16:02:58 +02:00
|
|
|
%blockquote= dossier.motivation
|