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

81 lines
3.3 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
-# brouillon does not occure
- if dossier.en_construction?
2018-08-10 16:17:19 +02:00
.en-construction
%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
= 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
%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
= 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{ role: 'status' }
2018-08-10 16:17:19 +02:00
%span.icon.accept
= t('views.users.dossiers.show.status_overview.acceptee_html')
2018-08-10 16:17:19 +02:00
- if dossier.motivation.present?
%h3= t('views.users.dossiers.show.status_overview.accepte_motivation')
%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('views.users.dossiers.show.status_overview.accepte_attestation')
2018-08-10 16:17:19 +02:00
- elsif dossier.refuse?
.refuse
%p.decision{ role: 'status' }
2018-08-10 16:17:19 +02:00
%span.icon.refuse
= t('views.users.dossiers.show.status_overview.refuse_html')
2018-08-10 16:17:19 +02:00
- if dossier.motivation.present?
%h3= t('views.users.dossiers.show.status_overview.refuse_motivation')
2018-08-10 16:17:19 +02:00
%blockquote= dossier.motivation
= render partial: 'users/dossiers/show/download_justificatif', locals: { dossier: dossier }
.action
= link_to t('views.users.dossiers.show.status_overview.refuse_reply'), 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{ role: 'status' }
2018-08-10 16:17:19 +02:00
%span.icon.without-continuation
= t('views.users.dossiers.show.status_overview.sans_suite_html')
2018-08-10 16:17:19 +02:00
= render partial: 'users/dossiers/show/download_justificatif', locals: { dossier: dossier }
- if dossier.motivation.present?
%h3= t('views.users.dossiers.show.status_overview.sans_suite_motivation')
%blockquote= dossier.motivation