cbergmiller / bootstrap-formform

Client-side form rendering for Bootstrap 3
http://www.bergmiller.de/formform_demo.html
MIT License
13 stars 9 forks source link

Bootstrap-FormForm

Client-side form rendering for Bootstrap 3.

Example

http://www.bergmiller.de/formform_demo.html

Dependencies

Usage

var fields, form;

fields = [
    {
        name: 'username',
        label: 'Benutzername',
        type: 'text'
    }, {
        name: 'password',
        label: 'Passwort',
        type: 'password'
    }, {
        label: 'Anmelden',
        type: 'submit',
        class: 'btn-default',
        icon: 'ok'
    }
];

form = FormForm( $('form'), fields );
form.render();

Automatic form generation with Django

Subclass JsModelForm and access the property json_form_fields on an instance.

Options

Horizontal forms

Horizontal forms are supported. Add class="form-horizontal to the form-tag.