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

90 lines
2.4 KiB
Text
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

%h1= "Dossier nº #{@dossier.id}"
%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 }
- if @dossier.individual.present?
= render partial: "shared/dossiers/identite_individual", locals: { individual: @dossier.individual }
%h2 Formulaire
- champs = @dossier.champs.decorate
- if champs.any?
= render partial: "shared/dossiers/champs", locals: { champs: champs, dossier: @dossier, demande_seen_at: nil }
- if @dossier.procedure.use_api_carto
%h3 Cartographie
- if @dossier.quartier_prioritaires.any?
%h4 Quartiers prioritaires
%table
- @dossier.quartier_prioritaires.each do |q|
%tr
%td= q.nom
- if @dossier.cadastres.any?
%h4 Parcelles cadastrales
%table
- @dossier.cadastres.each do |p|
%tr
%td= "Parcelle n° #{p.numero} - Feuille #{p.code_arr} #{p.section} #{p.feuille}"
- if @dossier.types_de_piece_justificative.any?
%h3 Pièces jointes
%table
- @dossier.procedure.types_de_piece_justificative.each do |type_de_piece_justificative|
%tr
%th= "#{type_de_piece_justificative.libelle} :"
%td
- pj = @dossier.retrieve_last_piece_justificative_by_type(type_de_piece_justificative.id)
- if pj.present?
#{pj.original_filename}
- else
Pièce non fournie
%h2 Annotations privées
- if @dossier.champs_private.present?
%table
- @dossier.champs_private.each do |champ|
%tr
%th
= champ.libelle
%td
= champ.value
- 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.each do |commentaire|
%li
= render partial: "shared/dossiers/messages/message", locals: { commentaire: commentaire, connected_user: current_gestionnaire, messagerie_seen_at: nil }
%script{ type: "text/javascript" }
window.print();