feature #3748: Use extended template table in zones info

This commit is contained in:
Daniel Molina committed 2015-04-20 18:13:53 +02:00
1 parent 84c075c5b2
commit df192a0ab0
2 files changed
+11 -4

No files matched your search

@@ -1,17 +1,24 @@
define(function(require) {
var TemplateInfo = require('hbs!./info/content');
var Locale = require('utils/locale');
var PanelRenameTr = require('utils/panel-rename-tr');
var RenameTr = require('utils/panel/rename-tr');
var ExtendedTemplateTable = require('utils/panel/extended-template-table');
var _html = function(info) {
var renameTrHTML = RenameTr.html("Zone", info.ZONE.NAME);
var extendedTemplateTableHTML = ExtendedTemplateTable.html(info.ZONE.TEMPLATE, "Zone", Locale.tr("Attributes"));
return TemplateInfo({
'info': info,
'renameTrHTML': PanelRenameTr.html("Zone", info.ZONE.NAME)
'renameTrHTML': renameTrHTML,
'extendedTemplateTableHTML': extendedTemplateTableHTML
});
}
var _setup = function(info, context) {
PanelRenameTr.setup("Zone", info.ZONE.ID, context);
RenameTr.setup("Zone", info.ZONE.ID, context);
ExtendedTemplateTable.setup(info.ZONE.TEMPLATE, "Zone", info.ZONE.ID, context);
return false;
}
var infoPanel = {
@@ -19,6 +19,6 @@
</div>
<div class="row">
<div class="large-9 columns">
{{! TODO insert_extended_template_table(zone_template, "Zone", ID, tr("Attributes"))}}
{{{extendedTemplateTableHTML}}}
</div>
</div>