mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
parent
575530bfac
commit
54f1f6bade
@ -65,9 +65,17 @@ define(function(require) {
|
||||
var templateTableHTML = TemplateTable.html(this.element.TEMPLATE, RESOURCE,
|
||||
Locale.tr("Attributes"));
|
||||
|
||||
if (this.element.SERVER_POOL.SERVER){
|
||||
var serverPool = this.element.SERVER_POOL.SERVER;
|
||||
if (!Array.isArray(serverPool)){
|
||||
serverPool = [serverPool];
|
||||
}
|
||||
}
|
||||
|
||||
return TemplateInfo({
|
||||
'element': this.element,
|
||||
'renameTrHTML': renameTrHTML,
|
||||
'serverPool': serverPool,
|
||||
'templateTableHTML': templateTableHTML
|
||||
});
|
||||
}
|
||||
|
@ -33,6 +33,32 @@
|
||||
</div>
|
||||
<div class="large-6 columns"></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-6 columns">
|
||||
<table id="info_zone_table" class="dataTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="3">{{tr "Server Pool"}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{tr "ID"}}</td>
|
||||
<td>{{tr "Name"}}</td>
|
||||
<td>{{tr "ENDPOINT"}}</td>
|
||||
</tr>
|
||||
{{#each serverPool}}
|
||||
<tr>
|
||||
<td>{{ID}}</td>
|
||||
<td>{{NAME}}</td>
|
||||
<td>{{ENDPOINT}}</td>
|
||||
</tr>
|
||||
{{/each}}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="large-6 columns"></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-9 columns">
|
||||
{{{templateTableHTML}}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user