From 2350b5cc7fff8525f9ee559d0629cf8337b100ad Mon Sep 17 00:00:00 2001 From: Martin Date: Thu, 29 Jun 2023 11:07:06 +0200 Subject: [PATCH] amelioration(admin): permet a un admin de desactiver le suffix "facultatif" sur les labels des champs non obligatoires --- .../champ_label_content_component.html.haml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/components/editable_champ/champ_label_content_component/champ_label_content_component.html.haml b/app/components/editable_champ/champ_label_content_component/champ_label_content_component.html.haml index d5a578b42..c71eab315 100644 --- a/app/components/editable_champ/champ_label_content_component/champ_label_content_component.html.haml +++ b/app/components/editable_champ/champ_label_content_component/champ_label_content_component.html.haml @@ -2,6 +2,8 @@ - if @champ.public? && !@champ.checkbox? - if @champ.mandatory? = render EditableChamp::AsteriskMandatoryComponent.new + - elsif @champ.dossier.procedure.feature_enabled?(:disable_label_optional_champ_2023_06_29) + -# noop here, allow admin to disable the optional_champ - else = "#{t('.optional_champ')}"