First commit
This commit is contained in:
commit
c6e2478c40
13918 changed files with 2303184 additions and 0 deletions
|
@ -0,0 +1,25 @@
|
|||
/**
|
||||
* Backbone Forms v{{version}}
|
||||
*
|
||||
* NOTE:
|
||||
* This version is for use with RequireJS
|
||||
* If using regular <script> tags to include your files, use backbone-forms.min.js
|
||||
*
|
||||
* Copyright (c) 2012 Charles Davison, Pow Media Ltd
|
||||
*
|
||||
* License and more information at:
|
||||
* http://github.com/powmedia/backbone-forms
|
||||
*/
|
||||
define(['jquery', 'underscore', 'backbone'], function($, _, Backbone) {
|
||||
|
||||
{{body}}
|
||||
|
||||
|
||||
//Metadata
|
||||
Form.VERSION = '{{version}}';
|
||||
|
||||
//Exports
|
||||
Backbone.Form = Form;
|
||||
|
||||
return Form;
|
||||
});
|
|
@ -0,0 +1,38 @@
|
|||
/**
|
||||
* Backbone Forms v{{version}}
|
||||
*
|
||||
* Copyright (c) 2012 Charles Davison, Pow Media Ltd
|
||||
*
|
||||
* License and more information at:
|
||||
* http://github.com/powmedia/backbone-forms
|
||||
*/
|
||||
;(function(root) {
|
||||
|
||||
//DEPENDENCIES
|
||||
//CommonJS
|
||||
if (typeof exports !== 'undefined' && typeof require !== 'undefined') {
|
||||
var $ = root.jQuery || root.Zepto || root.ender || require('jquery'),
|
||||
_ = root._ || require('underscore'),
|
||||
Backbone = root.Backbone || require('backbone');
|
||||
}
|
||||
|
||||
//Browser
|
||||
else {
|
||||
var $ = root.jQuery,
|
||||
_ = root._,
|
||||
Backbone = root.Backbone;
|
||||
}
|
||||
|
||||
|
||||
//SOURCE
|
||||
{{body}}
|
||||
|
||||
|
||||
//Metadata
|
||||
Form.VERSION = '{{version}}';
|
||||
|
||||
|
||||
//Exports
|
||||
Backbone.Form = Form;
|
||||
|
||||
})(this);
|
|
@ -0,0 +1,5 @@
|
|||
define(['jquery', 'underscore', 'backbone', 'backbone-forms'], function($, _, Backbone) {
|
||||
|
||||
{{body}}
|
||||
|
||||
});
|
|
@ -0,0 +1,12 @@
|
|||
/**
|
||||
* 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
|
||||
*/
|
||||
define(['jquery', 'underscore', 'backbone', 'backbone-forms'], function($, _, Backbone) {
|
||||
var Form = Backbone.Form;
|
||||
|
||||
{{body}}
|
||||
|
||||
});
|
|
@ -0,0 +1,15 @@
|
|||
/**
|
||||
* 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;
|
||||
|
||||
{{body}}
|
||||
|
||||
})();
|
Loading…
Add table
Add a link
Reference in a new issue