/** * Include this file _after_ the main backbone-forms file to override the default templates. * You only need to include templates you want to override. * * Requirements when customising templates: * - Each template must have one 'parent' element tag. * - "data-type" attributes are required. * - The main placeholder tags such as the following are required: fieldsets, fields */ ;(function() { var Form = Backbone.Form; //DEFAULT TEMPLATES Form.setTemplates({ //HTML form: '\
{{fieldsets}}
\ ', fieldset: '\
\ {{legend}}\ \
\ ', field: '\
  • \ \
    {{editor}}
    \
    {{help}}
    \
    {{error}}
    \
  • \ ', nestedField: '\
  • \ \
    {{editor}}
    \
    {{help}}
    \
    {{error}}
    \
  • \ ', list: '\
    \ \
    \
    \ ', listItem: '\
  • \ \
    {{editor}}
    \
  • \ ', date: '\
    \ \ \ \
    \ ', dateTime: '\
    \
    {{date}}
    \ \ :\ \
    \ ', 'list.Modal': '\
    \ {{summary}}\
    \ ' }, { //CLASSNAMES error: 'bbf-error' }); })();