X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/30cff3b4aec008ee33ddb413f814d5962a5e3727..11ffa88b49ac21b7000746a5a75ec5528461a0ae:/src/editor/modules/rng/documentSummary.js diff --git a/src/editor/modules/rng/documentSummary.js b/src/editor/modules/rng/documentSummary.js new file mode 100644 index 0000000..211037d --- /dev/null +++ b/src/editor/modules/rng/documentSummary.js @@ -0,0 +1,30 @@ +define(function(require) { + +'use strict'; + +var $ = require('libs/jquery'), + _ = require('libs/underscore'), + template = require('libs/text!./documentSummary.html'); + + +var view = { + dom: $('
'), + init: function(config) { + this.config = config; + this.template = _.template(template); + }, + render: function(properties) { + this.dom.html(this.template({ + title: this.config.title, + properties: this.config.properties, + propertyValues: properties + })); + }, + setDraftField: function(value) { + this.dom.find('.draft').text(value); + } +}; + +return view; + +}); \ No newline at end of file