amelioration(admin): permet a un admin de desactiver le suffix "facultatif" sur les labels des champs non obligatoires
This commit is contained in:
parent
6f2bd8f27c
commit
2350b5cc7f
1 changed files with 2 additions and 0 deletions
|
@ -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')}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue