add other option to liste deroulante champ

This commit is contained in:
kara Diaby 2021-10-12 18:07:10 +02:00
parent 8bc925ae50
commit dc35d9521f
6 changed files with 51 additions and 1 deletions

View file

@ -41,4 +41,12 @@ class Champs::DropDownListChamp < Champ
def enabled_non_empty_options
drop_down_list_enabled_non_empty_options
end
def other_value_present?
self.value.present? && self.options.exclude?(self.value)
end
def drop_down_other?
drop_down_other
end
end