From bfd455986f9dcec3f9bdbb9bbc3a430163e69c72 Mon Sep 17 00:00:00 2001 From: Benoit Queyron Date: Tue, 11 Jun 2024 17:15:02 +0200 Subject: [PATCH] ajout de la condition sur PJ uniquement autorisee --- .../champ_label_component/champ_label_component.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/editable_champ/champ_label_component/champ_label_component.html.haml b/app/components/editable_champ/champ_label_component/champ_label_component.html.haml index 76e67c44c..fd896be6a 100644 --- a/app/components/editable_champ/champ_label_component/champ_label_component.html.haml +++ b/app/components/editable_champ/champ_label_component/champ_label_component.html.haml @@ -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