2016-12-07 15:44:28 +01:00
|
|
|
- render_partial_url = private ? 'users/description/champs/header_private_section' : 'users/description/champs/header_section'
|
2016-12-22 11:39:44 +01:00
|
|
|
- @champs = @champs_private if private
|
|
|
|
- @headers = @headers_private if private
|
|
|
|
|
2018-01-11 19:04:39 +01:00
|
|
|
- if @headers.present?
|
2016-12-22 10:36:18 +01:00
|
|
|
- if @champs.first.type_champ != 'header_section'
|
2017-04-06 19:10:25 +02:00
|
|
|
= render partial: render_partial_url, locals: { libelle: 'Dossier', order_place: -1, champs: @champs }
|
2016-12-07 13:57:55 +01:00
|
|
|
- @headers.each do |header|
|
2016-06-09 14:18:28 +02:00
|
|
|
.row
|
2017-04-12 11:12:05 +02:00
|
|
|
%div{ class: "type-champ-#{header.type_champ.gsub('_', '-')}" }
|
2017-04-06 19:10:25 +02:00
|
|
|
= render partial: render_partial_url, locals: { libelle: header.libelle, order_place: header.order_place, champs: @champs }
|
2016-12-05 19:30:58 +01:00
|
|
|
- else
|
|
|
|
.row
|
2017-04-06 19:10:25 +02:00
|
|
|
= render partial: render_partial_url, locals: { libelle: 'Dossier', order_place: -1, champs: @champs }
|