2023-04-23 20:32:04 +02:00
|
|
|
.fr-mb-4w
|
2018-08-10 16:17:19 +02:00
|
|
|
- if !dossier.termine?
|
2023-04-23 20:32:04 +02:00
|
|
|
.fr-grid-row.fr-grid-row--center
|
|
|
|
.fr-col-md-8.text-center
|
|
|
|
%ul.status-timeline.fr-mb-4w
|
|
|
|
- if dossier.brouillon?
|
|
|
|
%li.brouillon{ class: dossier.brouillon? ? 'active' : nil }
|
|
|
|
= t('views.users.dossiers.show.status_overview.status_draft')
|
|
|
|
%li.en-construction{ class: dossier.en_construction? ? 'active' : nil }
|
|
|
|
= t('views.users.dossiers.show.status_overview.status_in_progress')
|
2023-04-19 16:47:40 +02:00
|
|
|
|
|
|
|
- if dossier.pending_correction.present?
|
|
|
|
= "(#{Dossier.human_attribute_name("pending_correction.for_user")})"
|
2023-04-23 20:32:04 +02:00
|
|
|
%li.en-instruction{ class: dossier.en_instruction? ? 'active' : nil }
|
|
|
|
= t('views.users.dossiers.show.status_overview.status_review')
|
|
|
|
%li.termine{ class: dossier.termine? ? 'active' : nil }
|
|
|
|
= t('views.users.dossiers.show.status_overview.status_completed')
|
|
|
|
|
2023-04-23 20:44:35 +02:00
|
|
|
- if dossier.en_construction?
|
|
|
|
.fr-grid-row.fr-grid-row--center
|
|
|
|
.fr-col-md-10.fr-col-lg-9
|
|
|
|
= render Dossiers::EnConstructionNotSubmittedComponent.new(dossier: dossier, user: current_user)
|
|
|
|
|
2023-04-23 20:32:04 +02:00
|
|
|
.fr-grid-row.fr-grid-row--center
|
|
|
|
.fr-col-md-10.fr-col-lg-9.status-explanation
|
|
|
|
-# brouillon does not occure
|
|
|
|
- if dossier.en_construction?
|
|
|
|
.en-construction
|
2023-04-19 16:47:40 +02:00
|
|
|
- if dossier.pending_correction.present?
|
2023-12-04 14:47:05 +01:00
|
|
|
.message.fr-background-alt--grey
|
2023-04-19 16:47:40 +02:00
|
|
|
= render Dossiers::MessageComponent.new(commentaire: dossier.pending_correction.commentaire, connected_user: current_user)
|
|
|
|
|
2023-04-23 20:32:04 +02:00
|
|
|
%p{ role: 'status' }
|
|
|
|
= t('views.users.dossiers.show.status_overview.en_construction_html')
|
|
|
|
|
2023-11-21 12:33:39 +01:00
|
|
|
= render Procedure::EstimatedDelayComponent.new(procedure: dossier.procedure)
|
2023-04-23 20:32:04 +02:00
|
|
|
%p
|
|
|
|
= t('views.users.dossiers.show.status_overview.use_mailbox_for_questions_html', mailbox_url: messagerie_dossier_url(dossier))
|
|
|
|
|
|
|
|
- elsif dossier.en_instruction?
|
|
|
|
.en-instruction
|
|
|
|
%p{ role: 'status' }
|
|
|
|
= t('views.users.dossiers.show.status_overview.admin_review')
|
|
|
|
|
2023-06-08 16:41:52 +02:00
|
|
|
- if dossier.sva_svr_decision_on.present?
|
|
|
|
-# i18n-tasks-use t('views.users.dossiers.show.status_overview.delay_title.sva'), t('views.users.dossiers.show.status_overview.delay_title.svr')
|
|
|
|
= render Dsfr::CalloutComponent.new(title: t(dossier.procedure.sva_svr_configuration.decision, scope: "views.users.dossiers.show.status_overview.delay_title")) do |c|
|
|
|
|
- c.with_body do
|
|
|
|
%p
|
|
|
|
= t('views.users.dossiers.show.status_overview.delay_text_sva_svr', date: l(dossier.sva_svr_decision_on, format: :long))
|
|
|
|
|
2023-11-21 12:33:39 +01:00
|
|
|
= render Procedure::EstimatedDelayComponent.new(procedure: dossier.procedure)
|
2023-04-23 20:32:04 +02:00
|
|
|
|
|
|
|
%p
|
|
|
|
= t('views.users.dossiers.show.status_overview.use_mailbox_for_questions_html', mailbox_url: messagerie_dossier_url(dossier))
|
|
|
|
|
2024-03-25 14:08:46 +01:00
|
|
|
- elsif dossier.termine?
|
2024-03-26 14:50:49 +01:00
|
|
|
- if dossier.hide_info_with_accuse_lecture
|
|
|
|
= render Dossiers::AccuseLectureComponent.new(dossier: dossier)
|
2023-04-23 20:32:04 +02:00
|
|
|
|
2024-03-25 14:08:46 +01:00
|
|
|
- elsif dossier.accepte?
|
|
|
|
.accepte
|
|
|
|
%p.decision{ role: 'status' }
|
|
|
|
= dsfr_icon('fr-icon-checkbox-circle-fill fr-text-default--success')
|
|
|
|
= t('views.users.dossiers.show.status_overview.acceptee_html')
|
|
|
|
|
|
|
|
- if dossier.motivation.present?
|
|
|
|
%h3= t('views.users.dossiers.show.status_overview.accepte_motivation')
|
|
|
|
%blockquote= simple_format(dossier.motivation)
|
|
|
|
|
|
|
|
= render partial: 'users/dossiers/show/download_justificatif', locals: { dossier: dossier }
|
2023-04-23 20:32:04 +02:00
|
|
|
|
2024-03-25 14:08:46 +01:00
|
|
|
- if dossier.attestation.present?
|
|
|
|
.action
|
|
|
|
= link_to attestation_dossier_path(dossier), class: "fr-btn fr-icon-download-line fr-btn--icon-left", target: '_blank', rel: 'noopener' do
|
|
|
|
= t('views.users.dossiers.show.status_overview.accepte_attestation')
|
2023-04-23 20:32:04 +02:00
|
|
|
|
|
|
|
|
2024-03-25 14:08:46 +01:00
|
|
|
- elsif dossier.refuse?
|
|
|
|
.refuse
|
|
|
|
%p.decision{ role: 'status' }
|
|
|
|
= dsfr_icon('fr-icon-close-circle-fill fr-text-default--error')
|
|
|
|
= t('views.users.dossiers.show.status_overview.refuse_html')
|
2023-04-23 20:32:04 +02:00
|
|
|
|
2024-03-25 14:08:46 +01:00
|
|
|
- if dossier.motivation.present?
|
|
|
|
%h3= t('views.users.dossiers.show.status_overview.refuse_motivation')
|
|
|
|
%blockquote= simple_format(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: 'fr-link'
|
2018-09-17 14:48:04 +02:00
|
|
|
|
2024-03-25 14:08:46 +01:00
|
|
|
- elsif dossier.sans_suite?
|
|
|
|
.sans-suite
|
|
|
|
%p.decision{ role: 'status' }
|
|
|
|
= dsfr_icon('fr-icon-intermediate-circle-fill')
|
|
|
|
= t('views.users.dossiers.show.status_overview.sans_suite_html')
|
2018-08-10 16:17:19 +02:00
|
|
|
|
2024-03-25 14:08:46 +01:00
|
|
|
= render partial: 'users/dossiers/show/download_justificatif', locals: { dossier: dossier }
|
2019-02-18 17:52:15 +01:00
|
|
|
|
2024-03-25 14:08:46 +01:00
|
|
|
- if dossier.motivation.present?
|
|
|
|
%h3= t('views.users.dossiers.show.status_overview.sans_suite_motivation')
|
|
|
|
%blockquote= simple_format(dossier.motivation)
|