Refacto code in Récapitulatif view
This commit is contained in:
parent
76757b1d22
commit
d4522ae82e
2 changed files with 5 additions and 1 deletions
|
@ -26,6 +26,10 @@ class DossierFacades
|
||||||
@dossier.ordered_pieces_justificatives
|
@dossier.ordered_pieces_justificatives
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def types_de_pieces_justificatives
|
||||||
|
@dossier.types_de_piece_justificative.order('order_place ASC')
|
||||||
|
end
|
||||||
|
|
||||||
def champ_id
|
def champ_id
|
||||||
@champ_id
|
@champ_id
|
||||||
end
|
end
|
||||||
|
|
|
@ -81,7 +81,7 @@
|
||||||
= 'Pièce non fournie'
|
= 'Pièce non fournie'
|
||||||
.row
|
.row
|
||||||
.col-md-12.col-lg-12
|
.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
|
.row.piece-row
|
||||||
.col-md-12.col-lg-12{ id: "piece_justificative_#{type_de_piece_justificative.id}" }
|
.col-md-12.col-lg-12{ id: "piece_justificative_#{type_de_piece_justificative.id}" }
|
||||||
.row
|
.row
|
||||||
|
|
Loading…
Add table
Reference in a new issue