fix(procedure): list piece justificative in repetitions

This commit is contained in:
Colin Darie 2023-11-23 14:51:48 +01:00
parent fce2d8efa9
commit 5d747ba0c2
No known key found for this signature in database
GPG key ID: 8C76CADD40253590
4 changed files with 56 additions and 10 deletions

View file

@ -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

View file

@ -0,0 +1,6 @@
- tdc, parent_tdc = pj
%li
= tdc.libelle
= "(#{parent_tdc.libelle})" if parent_tdc
= t('utils.no_mandatory') if !tdc.mandatory?