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.public? && !@champ.checkbox?
|
||||||
- if @champ.mandatory?
|
- if @champ.mandatory?
|
||||||
= render EditableChamp::AsteriskMandatoryComponent.new
|
= 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
|
- else
|
||||||
= "#{t('.optional_champ')}"
|
= "#{t('.optional_champ')}"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue