Add admin field application

This commit is contained in:
Nicolas Le Goff
2013-05-12 19:51:29 +02:00
committed by Romain Neutron
parent 7199d38ab3
commit 05dc3659af
23 changed files with 1017 additions and 118 deletions

View File

@@ -0,0 +1,17 @@
define([
'underscore',
'backbone',
'models/dcField'
], function(_, Backbone, DcFieldModel) {
var DcFieldCollection = Backbone.Collection.extend({
model: DcFieldModel,
url: function() {
return '/admin/fields/dc-fields';
},
comparator: function(item) {
return item.get("label");
}
});
return DcFieldCollection;
});