Sha256: 61e6315448baa82c8e4b9086c2e4329280781b05b1f12fb086dca8e01b19ffd0
Contents?: true
Size: 1.44 KB
Versions: 1
Compression:
Stored size: 1.44 KB
Contents
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{"<abbr>*</abbr>"} 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jquery-ui-form-0.2.8 | lib/jquery_ui_form/form_builder.rb |