1 define(function(require) {
5 var $ = require('libs/jquery'),
6 _ = require('libs/underscore'),
7 template = require('libs/text!./documentSummary.html');
11 dom: $('<div class="documentSummary"></div>'),
12 init: function(config) {
14 this.template = _.template(template);
16 render: function(properties) {
17 this.dom.html(this.template({
18 title: this.config.title,
19 properties: this.config.properties,
20 propertyValues: properties
23 setDraftField: function(value) {
24 this.dom.find('.draft').text(value);