Refacto code in Récapitulatif view

This commit is contained in:
Xavier J 2016-12-22 10:55:27 +01:00
parent 76757b1d22
commit d4522ae82e
2 changed files with 5 additions and 1 deletions

View file

@ -26,6 +26,10 @@ class DossierFacades
@dossier.ordered_pieces_justificatives
end
def types_de_pieces_justificatives
@dossier.types_de_piece_justificative.order('order_place ASC')
end
def champ_id
@champ_id
end

View file

@ -81,7 +81,7 @@
= 'Pièce non fournie'
.row
.col-md-12.col-lg-12
- @facade.dossier.types_de_piece_justificative.order('order_place ASC').each do |type_de_piece_justificative|
- @facade.types_de_pieces_justificatives.each do |type_de_piece_justificative|
.row.piece-row
.col-md-12.col-lg-12{ id: "piece_justificative_#{type_de_piece_justificative.id}" }
.row