add address infos for rna in show
This commit is contained in:
parent
9e3f28e87b
commit
a756ab0a63
5 changed files with 19 additions and 0 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue