Client-side form rendering for Bootstrap 3.
http://www.bergmiller.de/formform_demo.html
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();
Subclass JsModelForm and access the property json_form_fields on an instance.
Horizontal forms are supported. Add class="form-horizontal
to the form-tag.