fix(procedure): list piece justificative in repetitions
This commit is contained in:
parent
fce2d8efa9
commit
5d747ba0c2
4 changed files with 56 additions and 10 deletions
|
@ -55,19 +55,13 @@
|
|||
#accordion-116.fr-collapse
|
||||
- if procedure.pieces_jointes_list_without_conditionnal.present?
|
||||
%ul
|
||||
- procedure.pieces_jointes_list_without_conditionnal.each do |pj|
|
||||
%li
|
||||
= pj.libelle
|
||||
= t('utils.no_mandatory') if !pj.mandatory?
|
||||
= render partial: "shared/procedure_pieces_jointes_list", collection: procedure.pieces_jointes_list_without_conditionnal, as: :pj
|
||||
|
||||
- if procedure.pieces_jointes_list_with_conditionnal.present?
|
||||
%h3.fr-text--sm.fr-mb-0.fr-mt-2w
|
||||
= t('shared.procedure_description.pieces_jointes_conditionnal_list_title')
|
||||
%ul
|
||||
- procedure.pieces_jointes_list_with_conditionnal.each do |pj|
|
||||
%li
|
||||
= pj.libelle
|
||||
= t('utils.no_mandatory') if !pj.mandatory?
|
||||
= render partial: "shared/procedure_pieces_jointes_list", collection: procedure.pieces_jointes_list_with_conditionnal, as: :pj
|
||||
|
||||
- if @usual_traitement_time.present?
|
||||
%section.fr-accordion
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
- tdc, parent_tdc = pj
|
||||
|
||||
%li
|
||||
= tdc.libelle
|
||||
= "(#{parent_tdc.libelle})" if parent_tdc
|
||||
= t('utils.no_mandatory') if !tdc.mandatory?
|
Loading…
Add table
Add a link
Reference in a new issue