Merge pull request #9553 from colinux/remove-optional-mention
ETQ usager, plus de mention "facultatif" sur les champs optionnels
This commit is contained in:
commit
d14ba89ed2
2 changed files with 14 additions and 3 deletions
|
@ -2,10 +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')}"
|
||||
%span.sr-only= t('.optional_champ')
|
||||
|
||||
- if @champ.forked_with_changes?
|
||||
%span.updated-at.highlighted
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
namespace :after_party do
|
||||
desc 'Deployment task: delete_optional_champ_feature_flag'
|
||||
task delete_optional_champ_feature_flag: :environment do
|
||||
puts "Running deploy task 'delete_optional_champ_feature_flag'"
|
||||
|
||||
Flipper::Adapters::ActiveRecord::Gate.where(feature_key: 'disable_label_optional_champ_2023_06_29').destroy_all
|
||||
|
||||
# Update task as completed. If you remove the line below, the task will
|
||||
# run with every deploy (or every time you call after_party:run).
|
||||
AfterParty::TaskRecord
|
||||
.create version: AfterParty::TaskRecorder.new(__FILE__).timestamp
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue