Sha256: c99ab4daade4e698d7947f89c38cf6442a5f2a7639f9b9d45abbc998a2738277
Contents?: true
Size: 797 Bytes
Versions: 1
Compression:
Stored size: 797 Bytes
Contents
module <%=name.camelize%>FormBuilder class <%=name.camelize%>FormBuilder < GenericFormFor::FormBuilder self.html5_browser_validate = true self.html5_browser_autofocus = true self.default_text_field_size = 40 self.required_string = "<abbr>*</abbr>" self.use_translations = true form_wrapper do form :class => "form-vertical" end fieldset_wrapper do fieldset_html do legend_html end end input_wrapper do wrap_in :class => "controls" do label_html :class => "control-label" input_html error_html end end actions_wrapper do actions_html :class => "form-actions" end action_wrapper do action_html :class => "btn btn-primary" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
generic_form_for-0.0.1 | lib/generators/generic_form_for/form_builder/templates/form_builder.erb |