demarches-normaliennes/app/views/users/description/_champs.html.haml
2016-12-07 15:53:26 +01:00

9 lines
491 B
Text

- render_partial_url = private ? 'users/description/champs/header_private_section' : 'users/description/champs/header_section'
- unless @headers.blank?
- @headers.each do |header|
.row
%div{class: "type_champ-#{header.type_champ}"}
=render partial: render_partial_url, locals: {libelle: header.libelle, order_place: header.order_place, champs: @champs}
- else
.row
=render partial: render_partial_url, locals: {libelle: 'Dossier', order_place: -1, champs: @champs}