Merge branch 'develop' into staging

This commit is contained in:
Xavier J 2016-12-22 11:56:31 +01:00
commit 8072ec8a9c
2 changed files with 18 additions and 7 deletions

View file

@ -19,11 +19,13 @@ class Backoffice::DossiersController < Backoffice::DossiersListController
def show
create_dossier_facade params[:id]
@champs_private = @facade.champs_private unless @facade.nil?
unless @facade.nil?
@champs_private = @facade.champs_private
@headers_private = @champs_private.inject([]) do |acc, champ|
acc.push(champ) if champ.type_champ == 'header_section'
acc
@headers_private = @champs_private.inject([]) do |acc, champ|
acc.push(champ) if champ.type_champ == 'header_section'
acc
end
end
end

View file

@ -59,12 +59,12 @@
%h3 Détails
.row{style:'margin-right:3%; margin-left:3%;'}
.description.col-md-4.col-lg-4
.description.col-md-3.col-lg-3
%h4.text-info
= @facade.procedure.libelle
= h @facade.procedure.description.html_safe
.champs.col-md-4.col-lg-4
.champs.col-md-3.col-lg-3
%h4.text-info
Champs
.badge.progress-bar-info
@ -73,7 +73,16 @@
= champ.libelle
%br
.pieces_justificatives.col-md-4.col-lg-4
.champs_private.col-md-3.col-lg-3
%h4.text-info
Champs privés
.badge.progress-bar-info
= @facade.procedure.types_de_champ_private.size
- @facade.procedure.types_de_champ_private.order(:order_place).each do |champ|
= champ.libelle
%br
.pieces_justificatives.col-md-3.col-lg-3
%h4.text-info
Pièces justificatives
.badge.progress-bar-info