demarches-normaliennes/app/views/shared/dossiers/_identite_individual.html.haml
Kara Diaby ee9c918ee8 Layout
2023-12-12 22:35:11 +00:00

27 lines
1.1 KiB
Text

- if dossier.for_tiers?
= render Dossiers::RowShowComponent.new(label: t('views.users.dossiers.identite.mandataire')) do |c|
- c.with_value do
%p= t('views.users.dossiers.identite.act_as_mandataire', mandataire: dossier.mandataire_full_name)
= render Dossiers::RowShowComponent.new(label: t('views.users.dossiers.identite.civility')) do |c|
- c.with_value do
%p= dossier.individual.gender
= render Dossiers::RowShowComponent.new(label: t('views.users.dossiers.identite.first_name')) do |c|
- c.with_value do
%p= dossier.individual.prenom
= render Dossiers::RowShowComponent.new(label: t('views.users.dossiers.identite.last_name')) do |c|
- c.with_value do
%p= dossier.individual.nom
- if dossier.individual.birthdate.present?
= render Dossiers::RowShowComponent.new(label: t('views.users.dossiers.identite.birthdate')) do |c|
- c.with_value do
%p= try_format_date(dossier.individual.birthdate)
- if dossier.for_tiers? && dossier.individual.email?
= render Dossiers::RowShowComponent.new(label: t('activerecord.attributes.individual.email')) do |c|
- c.with_value do
%p= dossier.individual.email