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

17 lines
718 B
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')
2022-10-05 09:46:15 +02:00
- elsif profile == 'instructeur'
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
%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)}
2022-10-05 09:46:15 +02:00
- else
%p= champ.identifier