2017-10-05 23:27:02 +02:00
|
|
|
%h1= "Dossier nº #{@dossier.id}"
|
2018-09-05 14:48:42 +02:00
|
|
|
%h1.subtitle= "Démarche : #{@dossier.procedure.libelle}"
|
2017-10-05 23:27:02 +02:00
|
|
|
|
|
|
|
%h2 Identité du demandeur
|
|
|
|
|
2018-08-14 13:39:49 +02:00
|
|
|
= render partial: "shared/dossiers/user_infos", locals: { user: @dossier.user }
|
2018-03-14 11:00:48 +01:00
|
|
|
|
2018-04-05 18:54:33 +02:00
|
|
|
- if @dossier.etablissement.present?
|
2018-10-17 12:12:32 +02:00
|
|
|
= render partial: "shared/dossiers/identite_entreprise", locals: { etablissement: @dossier.etablissement, profile: 'instructeur' }
|
2017-10-05 23:27:02 +02:00
|
|
|
|
|
|
|
- if @dossier.individual.present?
|
2018-08-14 13:39:49 +02:00
|
|
|
= render partial: "shared/dossiers/identite_individual", locals: { individual: @dossier.individual }
|
2017-10-05 23:27:02 +02:00
|
|
|
|
|
|
|
%h2 Formulaire
|
|
|
|
|
2018-12-27 11:41:16 +01:00
|
|
|
- champs = @dossier.champs
|
2017-10-05 23:27:02 +02:00
|
|
|
- if champs.any?
|
2018-10-17 12:12:32 +02:00
|
|
|
= render partial: "shared/dossiers/champs", locals: { champs: champs, dossier: @dossier, demande_seen_at: nil, profile: 'instructeur' }
|
2017-10-05 23:27:02 +02:00
|
|
|
|
|
|
|
%h2 Annotations privées
|
|
|
|
|
2018-12-29 20:42:18 +01:00
|
|
|
- champs_annotations_privees = @dossier.champs_private
|
|
|
|
- if champs_annotations_privees.any?
|
|
|
|
= render partial: "shared/dossiers/champs", locals: { champs: champs_annotations_privees, dossier: @dossier, demande_seen_at: nil, profile: 'instructeur' }
|
2017-10-05 23:27:02 +02:00
|
|
|
- else
|
|
|
|
Aucune annotation privée
|
|
|
|
|
|
|
|
%h2 Avis
|
|
|
|
|
|
|
|
- if @dossier.avis.present?
|
|
|
|
%table
|
|
|
|
- @dossier.avis.each do |avis|
|
|
|
|
%tr
|
|
|
|
%th
|
|
|
|
= "Avis de #{avis.email_to_display}"
|
|
|
|
- if avis.confidentiel?
|
|
|
|
(confidentiel)
|
|
|
|
%td
|
|
|
|
- if avis.answer.present?
|
|
|
|
= avis.answer
|
|
|
|
- else
|
|
|
|
En attente de réponse
|
|
|
|
- else
|
|
|
|
Aucun avis
|
|
|
|
|
|
|
|
%h2 Messagerie
|
|
|
|
|
2017-11-29 12:08:12 +01:00
|
|
|
.messagerie
|
|
|
|
%ul.messages-list
|
2019-06-25 17:12:44 +02:00
|
|
|
- @dossier.commentaires.with_attached_piece_jointe.each do |commentaire|
|
2017-11-29 12:08:12 +01:00
|
|
|
%li
|
2019-07-16 12:11:24 +02:00
|
|
|
= render partial: "shared/dossiers/messages/message", locals: { commentaire: commentaire, connected_user: current_gestionnaire, messagerie_seen_at: nil, show_reply_button: false }
|
2017-10-05 23:27:02 +02:00
|
|
|
|
|
|
|
%script{ type: "text/javascript" }
|
|
|
|
window.print();
|