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|
|
= render Dossiers::RowShowComponent.new(label: t("activemodel.attributes.rna_champ.data.#{scope}")) do |c|
|
||||||
- c.with_value do
|
- c.with_value do
|
||||||
%p= l(champ.data[scope].to_date)
|
%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]
|
||||||
|
|
|
@ -9,6 +9,9 @@ en:
|
||||||
association_date_creation: Creation date
|
association_date_creation: Creation date
|
||||||
association_date_declaration: Declaration date
|
association_date_declaration: Declaration date
|
||||||
association_date_publication: Publication date
|
association_date_publication: Publication date
|
||||||
|
address: Address
|
||||||
|
code_insee: INSEE code
|
||||||
|
code_postal: Postal code
|
||||||
paste: Copy the RNA to the clipboard
|
paste: Copy the RNA to the clipboard
|
||||||
paste_success: The RNA has been copied to the clipboard
|
paste_success: The RNA has been copied to the clipboard
|
||||||
activerecord:
|
activerecord:
|
||||||
|
|
|
@ -9,6 +9,9 @@ fr:
|
||||||
association_date_creation: Date de création
|
association_date_creation: Date de création
|
||||||
association_date_declaration: Date de déclaration
|
association_date_declaration: Date de déclaration
|
||||||
association_date_publication: Date de publication
|
association_date_publication: Date de publication
|
||||||
|
address: Adresse
|
||||||
|
code_insee: Code INSEE
|
||||||
|
code_postal: Code postal
|
||||||
paste: Copier le RNA dans le presse-papier
|
paste: Copier le RNA dans le presse-papier
|
||||||
paste_success: Le RNA a été copié dans le presse-papier
|
paste_success: Le RNA a été copié dans le presse-papier
|
||||||
activerecord:
|
activerecord:
|
||||||
|
|
|
@ -15,6 +15,7 @@ en:
|
||||||
cityCode: City code
|
cityCode: City code
|
||||||
postalCode: Postal code
|
postalCode: Postal code
|
||||||
department: Department
|
department: Department
|
||||||
|
label: Address
|
||||||
paste: Copy the RNF to the clipboard
|
paste: Copy the RNF to the clipboard
|
||||||
paste_success: The RNF has been copied to the clipboard
|
paste_success: The RNF has been copied to the clipboard
|
||||||
activerecord:
|
activerecord:
|
||||||
|
|
|
@ -15,6 +15,7 @@ fr:
|
||||||
cityCode: Code INSEE
|
cityCode: Code INSEE
|
||||||
postalCode: Code postal
|
postalCode: Code postal
|
||||||
department: Département
|
department: Département
|
||||||
|
label: Adresse
|
||||||
paste: Copier le RNF dans le presse-papier
|
paste: Copier le RNF dans le presse-papier
|
||||||
paste_success: Le RNF a été copié dans le presse-papier
|
paste_success: Le RNF a été copié dans le presse-papier
|
||||||
activerecord:
|
activerecord:
|
||||||
|
|
Loading…
Reference in a new issue