demarches-normaliennes/app/views/fields/champ_collection_field/_show.html.haml
2019-02-19 14:30:14 +01:00

24 lines
631 B
Text

- 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