34 lines
1.7 KiB
Text
34 lines
1.7 KiB
Text
- if champ.value.blank?
|
|
%p= t('.not_filled')
|
|
- else
|
|
- if champ.data.blank?
|
|
%p= t('.not_found', rna: champ.value)
|
|
- else
|
|
.fr-background-alt--grey.fr-p-3v
|
|
= render Dossiers::RowShowComponent.new(label: t("activemodel.attributes.rna_champ.value")) do |c|
|
|
- c.with_value do
|
|
%p
|
|
= champ.value
|
|
= render Dsfr::CopyButtonComponent.new(text: champ.value, title: t("activemodel.attributes.rna_champ.paste"), success: t("activemodel.attributes.rna_champ.paste_success"))
|
|
|
|
- ['association_titre', 'association_objet', ].each do |scope|
|
|
- if champ.data[scope].present?
|
|
= render Dossiers::RowShowComponent.new(label: t("activemodel.attributes.rna_champ.data.#{scope}")) do |c|
|
|
- c.with_value do
|
|
%p= champ.data[scope]
|
|
- ['association_date_creation', 'association_date_declaration', 'association_date_publication'].each do |scope|
|
|
- if champ.data[scope].present?
|
|
= 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]
|