add address infos for rna in show

This commit is contained in:
Lisa Durand 2024-01-31 17:57:45 +01:00 committed by Colin Darie
parent 9e3f28e87b
commit a756ab0a63
No known key found for this signature in database
GPG key ID: 8C76CADD40253590
5 changed files with 19 additions and 0 deletions

View file

@ -21,3 +21,14 @@
= render Dossiers::RowShowComponent.new(label: t("activemodel.attributes.rna_champ.data.#{scope}")) do |c|
- c.with_value do
%p= l(champ.data[scope].to_date)
- if champ.data['address'].present?
= render Dossiers::RowShowComponent.new(label: t("activemodel.attributes.rna_champ.data.address")) do |c|
- c.with_value do
%p= champ.full_address
- ['code_insee', 'code_postal'].each do |scope|
- if champ.data['address'][scope].present?
= render Dossiers::RowShowComponent.new(label: t("activemodel.attributes.rna_champ.data.#{scope}")) do |c|
- c.with_value do
%p= champ.data['address'][scope]