class Ezframe::CheckboxType
Public Instance Methods
db_type()
click to toggle source
# File lib/ezframe/column_type.rb, line 354 def db_type return "text" end
form(opts = {})
click to toggle source
# File lib/ezframe/column_type.rb, line 344 def form(opts = {}) return nil if no_edit? && !opts[:force] key = self.key key ="#{key}#{opts[:key_suffix]}" if opts[:key_suffix] h = Ht.checkbox(name: key, value: parent[:id].value, label: @attribute[:label]) h[:class] = @attribute[:class] if @attribute[:class] h[:after] = make_error_box(key) return h end