Merge pull request #9263 from mfo/US/flip-optional-text

amelioration(admin): ETQ admin, je peux de desactiver le suffix "facultatif" sur les labels des champs non obligatoires (demander au support)
This commit is contained in:
mfo 2023-06-29 13:21:33 +00:00 committed by GitHub
commit f3922c7e39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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