amelioration(admin): permet a un admin de desactiver le suffix "facultatif" sur les labels des champs non obligatoires

This commit is contained in:
Martin 2023-06-29 11:07:06 +02:00
parent 6f2bd8f27c
commit 2350b5cc7f

View file

@ -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')}"