demarches-normaliennes/app/views/shared/champs/rna/_show.html.haml
2022-10-05 09:46:15 +02:00

16 lines
718 B
Text

- if champ.value.blank?
%p= t('.not_filled')
- elsif profile == 'instructeur'
- if champ.data.blank?
%p= t('.not_found', rna: champ.value)
- else
%p= t('.data_fetched_title', rna: champ.value)
%ul
- ['association_titre', 'association_objet', ].each do |scope|
- if champ.data[scope].present?
%li #{t("activemodel.attributes.rna_champ.data.#{scope}")} : #{champ.data[scope].capitalize}
- ['association_date_creation', 'association_date_declaration', 'association_date_publication'].each do |scope|
- if champ.data[scope].present?
%li #{t("activemodel.attributes.rna_champ.data.#{scope}")} : #{l(champ.data[scope].to_date)}
- else
%p= champ.identifier