Update templates to display databox fields labels

This commit is contained in:
Romain Neutron
2013-05-30 16:17:57 +02:00
parent 82af1ba69e
commit 769f319638
15 changed files with 189 additions and 607 deletions

View File

@@ -49,7 +49,7 @@
}
};
var databoxField = function(name, meta_struct_id, options) {
var databoxField = function(name, label, meta_struct_id, options) {
var defaults = {
multi : false,
@@ -70,6 +70,7 @@
}
this.name = name;
this.label = label;
this.meta_struct_id = meta_struct_id;
this.options = jQuery.extend(defaults, options);
@@ -87,6 +88,9 @@
getName : function() {
return this.name;
},
getLabel : function() {
return this.label;
},
isMulti : function() {
return this.options.multi;
},