ajout de la condition sur PJ uniquement autorisee

This commit is contained in:
Benoit Queyron 2024-06-11 17:15:02 +02:00 committed by Benoit Queyron
parent a46ebea4ee
commit bfd455986f
No known key found for this signature in database
GPG key ID: 9E723480C7317E22

View file

@ -1,7 +1,7 @@
= # we do this trick because some html elements should use 'label' and some should be plain paragraphs
- if @champ.html_label?
- if @champ.piece_justificative?
- if @champ.piece_justificative? && !@champ.procedure.piece_justificative_multiple
-# champ piece_justificative : remove the asociation with the input
= @form.label @champ.main_value_name, id: @champ.labelledby_id, class: 'fr-label' do
- render EditableChamp::ChampLabelContentComponent.new form: @form, champ: @champ, seen_at: @seen_at