demarches-normaliennes/app/views/instructeurs/dossiers/print.html.haml

56 lines
1.7 KiB
Text
Raw Normal View History

%h1= "Dossier nº #{@dossier.id}"
2018-09-05 14:48:42 +02:00
%h1.subtitle= "Démarche : #{@dossier.procedure.libelle}"
%h2 Identité du demandeur
= render partial: "shared/dossiers/user_infos", locals: { user: @dossier.user }
- if @dossier.etablissement.present?
= render partial: "shared/dossiers/identite_entreprise", locals: { etablissement: @dossier.etablissement, profile: 'instructeur' }
- if @dossier.individual.present?
= render partial: "shared/dossiers/identite_individual", locals: { individual: @dossier.individual }
%h2 Formulaire
2018-12-27 11:41:16 +01:00
- champs = @dossier.champs
- if champs.any?
= render partial: "shared/dossiers/champs", locals: { champs: champs, dossier: @dossier, demande_seen_at: nil, profile: 'instructeur' }
%h2 Annotations privées
- 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' }
- 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
.messagerie
%ul.messages-list
- @dossier.commentaires.with_attached_piece_jointe.each do |commentaire|
%li
= render partial: "shared/dossiers/messages/message", locals: { commentaire: commentaire, connected_user: current_instructeur, messagerie_seen_at: nil, show_reply_button: false }
%script{ type: "text/javascript" }
window.print();