I am using BackboneForms and I want the fields passed in fieldsets to be inline in the some row. (Using bootstrap3)
for example:
form = new Form({
fieldsets:[
{legend:'PART1', fields:['title', 'content', 'email']},
{legend:'PART2', fields:['country', 'sport']}
]
});
I want the inputs in PART1 in the same row. (col-sm-4 for each one), col-sm-6 for the PART2 inputs and so on for any object in fieldsets.
How can I do this ?
As per the docs : https://github.com/powmedia/backbone-forms#customising-templates
Custom Forms
Javascript
Placeholders are the data-xxx attributes, e.g. data-fieldsets, data-fields and data-editors.
https://github.com/powmedia/backbone-forms#alternate-field-templates