2022-12-01 12:15:29 +01:00
|
|
|
|
- if @is_dossier_in_batch_operation
|
|
|
|
|
= render Dsfr::NoticeComponent.new(closable: false) do |c|
|
|
|
|
|
- c.with_title do
|
|
|
|
|
Un traitement de masse est en cours sur ce dossier, vous ne pouvez pas le modifier.
|
2022-12-06 11:17:46 +01:00
|
|
|
|
= link_to "Recharger la page", instructeur_dossier_path
|
2022-12-01 12:15:29 +01:00
|
|
|
|
pour voir si l'opération est finie.
|
|
|
|
|
|
2018-04-23 17:22:20 +02:00
|
|
|
|
.sub-header
|
2017-07-18 15:12:55 +02:00
|
|
|
|
.container
|
2023-02-13 15:41:18 +01:00
|
|
|
|
.flex.fr-mb-3w
|
|
|
|
|
%div
|
|
|
|
|
%h1.fr-h2.fr-mb-1w
|
2017-08-02 16:20:01 +02:00
|
|
|
|
= "Dossier nº #{dossier.id}"
|
2021-12-02 16:19:17 +01:00
|
|
|
|
|
2023-02-13 15:41:18 +01:00
|
|
|
|
= status_badge(dossier.state, 'super')
|
|
|
|
|
= link_to dossier.procedure.libelle.truncate_words(10), instructeur_procedure_path(dossier.procedure), title: dossier.procedure.libelle, class: "fr-link"
|
|
|
|
|
= procedure_badge(dossier.procedure)
|
|
|
|
|
|
|
|
|
|
.header-actions.fr-ml-auto
|
2019-08-12 16:04:09 +02:00
|
|
|
|
= render partial: 'instructeurs/dossiers/header_actions', locals: { dossier: dossier }
|
2023-02-13 15:41:18 +01:00
|
|
|
|
= render(partial: 'instructeurs/dossiers/print_and_export_actions', locals: {dossier: dossier})
|
|
|
|
|
|
2018-08-16 16:30:55 +02:00
|
|
|
|
|
2021-12-02 16:19:17 +01:00
|
|
|
|
= render(partial: 'instructeurs/dossiers/expiration_banner', locals: {dossier: dossier})
|
|
|
|
|
|
2023-02-22 12:03:37 +01:00
|
|
|
|
- if dossier.motivation.present?
|
|
|
|
|
%p.fr-mb-1w
|
|
|
|
|
%small
|
|
|
|
|
%strong
|
|
|
|
|
Motivation :
|
|
|
|
|
« #{dossier.motivation} »
|
|
|
|
|
|
|
|
|
|
- if dossier.justificatif_motivation.attached?
|
|
|
|
|
%p.fr-mb-0
|
|
|
|
|
%small
|
|
|
|
|
%strong
|
|
|
|
|
Justificatif :
|
|
|
|
|
Ce justificatif joint par l’instructeur a été envoyé au demandeur.
|
|
|
|
|
= render partial: 'users/dossiers/show/download_justificatif', locals: { dossier: dossier }
|
|
|
|
|
|
|
|
|
|
- if dossier.attestation.present?
|
|
|
|
|
%p.fr-mb-0
|
|
|
|
|
%small
|
|
|
|
|
%strong
|
|
|
|
|
Cette attestation a été envoyée automatiquement au demandeur.
|
|
|
|
|
= link_to('Voir l’attestation', attestation_instructeur_dossier_path(dossier.procedure, dossier), target: '_blank', rel: 'noopener')
|
|
|
|
|
|
|
|
|
|
|
2021-12-24 18:10:50 +01:00
|
|
|
|
%nav.tabs
|
|
|
|
|
%ul
|
|
|
|
|
- notifications_summary = current_instructeur.notifications_for_dossier(dossier)
|
2018-08-16 16:30:55 +02:00
|
|
|
|
|
2022-04-13 15:44:29 +02:00
|
|
|
|
= dynamic_tab_item(t('views.instructeurs.dossiers.tab_steps.request'),
|
2021-12-24 18:10:50 +01:00
|
|
|
|
instructeur_dossier_path(dossier.procedure, dossier),
|
|
|
|
|
notification: notifications_summary[:demande])
|
2018-08-16 16:30:55 +02:00
|
|
|
|
|
2022-04-13 15:44:29 +02:00
|
|
|
|
= dynamic_tab_item(t('views.instructeurs.dossiers.tab_steps.private_annotations'),
|
2021-12-24 18:10:50 +01:00
|
|
|
|
annotations_privees_instructeur_dossier_path(dossier.procedure, dossier),
|
|
|
|
|
notification: notifications_summary[:annotations_privees])
|
2018-08-16 16:30:55 +02:00
|
|
|
|
|
2022-04-13 15:44:29 +02:00
|
|
|
|
= dynamic_tab_item(t('views.instructeurs.dossiers.tab_steps.external_opinion'),
|
2021-12-24 18:10:50 +01:00
|
|
|
|
avis_instructeur_dossier_path(dossier.procedure, dossier),
|
|
|
|
|
notification: notifications_summary[:avis])
|
2018-08-16 16:30:55 +02:00
|
|
|
|
|
2022-04-13 15:44:29 +02:00
|
|
|
|
= dynamic_tab_item(t('views.instructeurs.dossiers.tab_steps.messaging'),
|
2021-12-24 18:10:50 +01:00
|
|
|
|
messagerie_instructeur_dossier_path(dossier.procedure, dossier),
|
|
|
|
|
notification: notifications_summary[:messagerie])
|
2018-08-16 16:30:55 +02:00
|
|
|
|
|
2022-04-13 15:44:29 +02:00
|
|
|
|
= dynamic_tab_item(t('views.instructeurs.dossiers.tab_steps.involved_persons'),
|
2021-12-24 18:10:50 +01:00
|
|
|
|
personnes_impliquees_instructeur_dossier_path(dossier.procedure, dossier))
|
2017-11-23 18:00:13 +01:00
|
|
|
|
|
|
|
|
|
.container
|
|
|
|
|
.print-header
|
|
|
|
|
= dossier.procedure.libelle.truncate_words(10)
|
|
|
|
|
>
|
2018-11-06 18:45:29 +01:00
|
|
|
|
= "Dossier nº #{dossier.id} (#{dossier_display_state(dossier, lower: true)})"
|