2017-10-05 23:27:02 +02:00
|
|
|
|
%h1= "Dossier nº #{@dossier.id}"
|
|
|
|
|
%h1.subtitle= "Procédure : #{@dossier.procedure.libelle}"
|
|
|
|
|
|
|
|
|
|
%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-08-14 13:39:49 +02:00
|
|
|
|
= render partial: "shared/dossiers/identite_entreprise", locals: { etablissement: @dossier.etablissement }
|
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-08-30 11:51:35 +02:00
|
|
|
|
- champs = @dossier.champs.decorate
|
2017-10-05 23:27:02 +02:00
|
|
|
|
- if champs.any?
|
2018-08-14 13:39:49 +02:00
|
|
|
|
= render partial: "shared/dossiers/champs", locals: { champs: champs, dossier: @dossier, demande_seen_at: nil }
|
2017-10-05 23:27:02 +02:00
|
|
|
|
|
|
|
|
|
- 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}"
|
|
|
|
|
|
2018-04-24 16:02:36 +02:00
|
|
|
|
- if @dossier.types_de_piece_justificative.any?
|
2017-10-05 23:27:02 +02:00
|
|
|
|
%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?
|
|
|
|
|
Pièce fournie
|
|
|
|
|
- else
|
|
|
|
|
Pièce non fournie
|
|
|
|
|
|
|
|
|
|
%h2 Annotations privées
|
|
|
|
|
|
2018-08-30 11:51:35 +02:00
|
|
|
|
- if @dossier.champs_private.present?
|
2017-10-05 23:27:02 +02:00
|
|
|
|
%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
|
|
|
|
|
|
2017-11-29 12:08:12 +01:00
|
|
|
|
.messagerie
|
|
|
|
|
%ul.messages-list
|
|
|
|
|
- @dossier.commentaires.each do |commentaire|
|
|
|
|
|
%li
|
2018-08-16 17:22:08 +02:00
|
|
|
|
= render partial: "new_gestionnaire/shared/messages/message", locals: { commentaire: commentaire, user_email: current_gestionnaire.email, messagerie_seen_at: nil }
|
2017-10-05 23:27:02 +02:00
|
|
|
|
|
|
|
|
|
%script{ type: "text/javascript" }
|
|
|
|
|
window.print();
|