2022-10-04 22:11:01 +02:00
|
|
|
- if champ.value.blank?
|
2022-09-22 17:14:05 +02:00
|
|
|
%p= t('.not_filled')
|
2023-10-11 12:14:00 +02:00
|
|
|
- else
|
2022-09-22 17:14:05 +02:00
|
|
|
- if champ.data.blank?
|
2022-10-04 22:11:01 +02:00
|
|
|
%p= t('.not_found', rna: champ.value)
|
2022-09-22 17:14:05 +02:00
|
|
|
- else
|
2023-10-11 12:45:41 +02:00
|
|
|
.fr-background-alt--grey.fr-p-3v
|
2023-10-11 12:14:00 +02:00
|
|
|
= render Dossiers::RowShowComponent.new(label: t("activemodel.attributes.rna_champ.value")) do |c|
|
|
|
|
- c.with_value do
|
|
|
|
%p
|
|
|
|
= champ.value
|
2023-10-11 12:45:41 +02:00
|
|
|
= render Dsfr::CopyButtonComponent.new(text: champ.value, title: t("activemodel.attributes.rna_champ.paste"), success: t("activemodel.attributes.rna_champ.paste_success"))
|
2023-10-11 12:14:00 +02:00
|
|
|
|
2022-09-22 17:14:05 +02:00
|
|
|
- ['association_titre', 'association_objet', ].each do |scope|
|
|
|
|
- if champ.data[scope].present?
|
2023-10-11 12:14:00 +02:00
|
|
|
= render Dossiers::RowShowComponent.new(label: t("activemodel.attributes.rna_champ.data.#{scope}")) do |c|
|
|
|
|
- c.with_value do
|
|
|
|
%p= champ.data[scope]
|
2022-09-22 17:14:05 +02:00
|
|
|
- ['association_date_creation', 'association_date_declaration', 'association_date_publication'].each do |scope|
|
|
|
|
- if champ.data[scope].present?
|
2023-10-11 12:14:00 +02:00
|
|
|
= 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)
|