powmedia / backbone-forms

Form framework for BackboneJS with nested forms, editable lists and validation
MIT License
2.17k stars 413 forks source link

.class and #id for labels and error div #370

Closed szymdzum closed 10 years ago

szymdzum commented 10 years ago

Hi guys,

I have a big project and I want to use backbone-forms for it

Can you show me how to assign class and id to the:

That's is my first bigger project using Backbone as well, help is much appreciated. Thanks, Simon

powmedia commented 10 years ago

You can override the default form, field, fieldset etc. templates - see the file dist/templates/bootstrap3.js for an example of how this works.

However the best way of customising your form templates (as well as form behaviour) is usually to extend Backbone.Form and modify what you need. For example: https://github.com/powmedia/backbone-forms#example-fully-customise-forms-and-templates