From 7bb75c3f56d8d1e77177168a5dfee3d5438f09a5 Mon Sep 17 00:00:00 2001 From: Mathieu Magnin Date: Tue, 11 Jul 2017 15:55:08 +0200 Subject: [PATCH] Add identite infos for individual --- .../dossiers/_identite_individual.html.haml | 14 ++++++++++++++ app/views/new_gestionnaire/dossiers/show.html.haml | 3 +++ 2 files changed, 17 insertions(+) create mode 100644 app/views/new_gestionnaire/dossiers/_identite_individual.html.haml diff --git a/app/views/new_gestionnaire/dossiers/_identite_individual.html.haml b/app/views/new_gestionnaire/dossiers/_identite_individual.html.haml new file mode 100644 index 000000000..810ae7e39 --- /dev/null +++ b/app/views/new_gestionnaire/dossiers/_identite_individual.html.haml @@ -0,0 +1,14 @@ +%table.table + %tbody + %tr + %th Civilité : + %td= individual.gender + %tr + %th Prénom : + %td= individual.prenom + %tr + %th Nom : + %td= individual.nom + %tr + %th Date de naissance : + %td= individual.birthdate diff --git a/app/views/new_gestionnaire/dossiers/show.html.haml b/app/views/new_gestionnaire/dossiers/show.html.haml index b747a962f..aaf1f87f0 100644 --- a/app/views/new_gestionnaire/dossiers/show.html.haml +++ b/app/views/new_gestionnaire/dossiers/show.html.haml @@ -4,6 +4,9 @@ - if @dossier.entreprise.present? = render partial: "identite_entreprise", locals: { entreprise: @dossier.entreprise } + - if @dossier.individual.present? + = render partial: "identite_individual", locals: { individual: @dossier.individual } + .card.featured .card-title Construction du dossier - if @dossier.champs.present? && @dossier.champs.any?