module JqueryUiForm class FormBuilder < ActionView::Helpers::FormBuilder attr_accessor :template attr_accessor :autofocus def self.configure(name, value = nil) class_attribute(name) self.send(:"#{name}=", value) end configure :use_i18n, :true configure :required_string, proc{"*"} configure :html5_inputs, :true configure :placeholder_elements, %w(date email password phone search string text url) include JqueryUiForm::Helpers::WrapperHelper include JqueryUiForm::Helpers::InputHelper include JqueryUiForm::Helpers::ErrorHelper include JqueryUiForm::Helpers::LabelHelper include JqueryUiForm::Helpers::ButtonHelper include JqueryUiForm::Inputs::StringInput include JqueryUiForm::Inputs::PasswordInput include JqueryUiForm::Inputs::BooleanInput include JqueryUiForm::Inputs::SelectInput include JqueryUiForm::Inputs::RadioInput include JqueryUiForm::Inputs::CheckBoxesInput include JqueryUiForm::Inputs::TextInput include JqueryUiForm::Inputs::HiddenInput include JqueryUiForm::Inputs::FileInput # HTML5 include JqueryUiForm::Inputs::EmailInput include JqueryUiForm::Inputs::PhoneInput include JqueryUiForm::Inputs::UrlInput include JqueryUiForm::Inputs::SearchInput include JqueryUiForm::Inputs::NumberInput include JqueryUiForm::Inputs::RangeInput include JqueryUiForm::Inputs::DateInput end end