demarches-normaliennes/app/views/fields/champ_collection_field/_show.html.haml

25 lines
631 B
Text
Raw Normal View History

2019-02-19 12:38:33 +01:00
- if field.data.any?
%table.collection-data{ "aria-labelledby": "page-title" }
%thead
%tr
%td.cell-label Libelle
%td.cell-label Type de champ
%td.cell-label Rempli
%tbody
- field.data.each do |f|
%tr
%td.cell-data
= f.libelle
- if f.mandatory?
%span.mandatory{ style: 'color: #A10005;' } *
%td.cell-data
= I18n.t("activerecord.attributes.type_de_champ.type_champs.#{f.type_champ}")
%td.cell-data
- if f.blank?
vide
- else
rempli
- else
Aucun