demarches-normaliennes/app/views/shared/champs/rna/_show.html.haml

26 lines
1.2 KiB
Text
Raw Normal View History

2022-10-04 22:11:01 +02:00
- if champ.value.blank?
2022-09-22 17:14:05 +02:00
%p= t('.not_filled')
- 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
= 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"))
2022-09-22 17:14:05 +02:00
- ['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]
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?
= 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)
2024-01-31 17:57:45 +01:00
= render partial: "shared/dossiers/normalized_address", locals: { address: AddressProxy.new(champ) }