module RbbtHTMLHelpers def input(type, name, options = {}) id, hide, value, klass, default, description = Misc.process_options options, :id, :hide, :value, :class, :default, :description str = "
" if hide str << "" << '
' << "\n" return str end case type when :boolean not_value = ! value str << "" << "\n" str << "" << "\n" str << "" << "\n" str << "" << "\n" str << "" << "\n" str << "" str when :string, :float, :integer str << "" << "\n" str << "" << "\n" str << "" str when :tsv, :array, :text str << "" << "\n" str << "

" str << "" << "\n" str << "(or use text area bellow)" str << "

" str << "" str << "" str end end end