add other option to liste deroulante champ
This commit is contained in:
parent
8bc925ae50
commit
dc35d9521f
6 changed files with 51 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue