diff --git a/src/sunstone/public/app/tabs/vms-tab.js b/src/sunstone/public/app/tabs/vms-tab.js index cbaa7d4833..8db2673028 100644 --- a/src/sunstone/public/app/tabs/vms-tab.js +++ b/src/sunstone/public/app/tabs/vms-tab.js @@ -24,7 +24,8 @@ define(function(require) { require('./vms-tab/panels/snapshots'), require('./vms-tab/panels/placement'), require('./vms-tab/panels/actions'), - // require('./vms-tab/panels/template') + require('./vms-tab/panels/template'), + require('./vms-tab/panels/log') ]; var _formPanels = [ diff --git a/src/sunstone/public/app/tabs/vms-tab/panels/template.js b/src/sunstone/public/app/tabs/vms-tab/panels/template.js new file mode 100644 index 0000000000..a438251c27 --- /dev/null +++ b/src/sunstone/public/app/tabs/vms-tab/panels/template.js @@ -0,0 +1,53 @@ +define(function(require) { + /* + DEPENDENCIES + */ + + var Locale = require('utils/locale'); + var Humanize = require('utils/humanize'); + + /* + CONSTANTS + */ + + var TAB_ID = require('../tabId'); + var PANEL_ID = require('./template/panelId'); + var RESOURCE = "VM" + var XML_ROOT = "VM" + + /* + CONSTRUCTOR + */ + + function Panel(info) { + this.title = Locale.tr("Template"); + this.icon = "fa-file-o"; + + this.element = info[XML_ROOT]; + + return this; + }; + + Panel.PANEL_ID = PANEL_ID; + Panel.prototype.html = _html; + Panel.prototype.setup = _setup; + + return Panel; + + /* + FUNCTION DEFINITIONS + */ + + function _html() { + return '