Dynamic display for champs on description and recapitulative page

This commit is contained in:
Xavier J 2015-11-04 11:14:07 +01:00
parent 3a4beadbd1
commit 591f52f654
9 changed files with 81 additions and 33 deletions

View file

@ -6,7 +6,6 @@
%h3.text-info
= @dossier.nom_projet
%br
.description
- begin
- @dossier.description.split(/(?:\n\r?|\r\n?')/).each do |line|
@ -14,10 +13,21 @@
%br
- rescue
=''
.col-lg-6.col-md-6
=render partial: '/dossiers/pieces_justificatives'
%br
-unless @champs.nil?
.row
.col-lg-12.col-md-12
%table.table#liste_champs
-@champs.each do |champ|
%tr
%th.col-md-3.col-lg-3
=champ.libelle
%td
=champ.value
%div.row{style: 'text-align:right'}
-unless gestionnaire_signed_in?
-if !@dossier.validated? && !@dossier.submitted? && !@dossier.closed?