Various updates.
This commit is contained in:
@@ -1044,11 +1044,10 @@
|
||||
<li class="next finish" style="display:none;"><a href="#">Finish</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</script>
|
||||
|
||||
<!-- Networks list. -->
|
||||
<script type="text/template" id="tpl-networks-list" data-class="container" data-items-container="tbody">
|
||||
|
||||
<table class="table table-hover table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -1065,12 +1064,15 @@
|
||||
</table>
|
||||
</script>
|
||||
<script type="text/template" id="tpl-networks-list-item" data-tag="tr">
|
||||
<td><i class="icon-sitemap"></i> <%= name %></td>
|
||||
<td><%= '@todo' || speed %></td>
|
||||
<td><%= yesNo(duplex) %></td>
|
||||
<td><%= IP ? IP : '<em>none</em>' %></td>
|
||||
<td class="mac-address"><%= MAC %></td>
|
||||
<td><%= vendor %> <%= device %></td>
|
||||
<%
|
||||
var metrics = get('metrics');
|
||||
%>
|
||||
<td><i class="icon-sitemap"></i> <%= get('network.name_label') %></td>
|
||||
<td><%= get(metrics, 'speed') %></td>
|
||||
<td><%= yesNo(get(metrics, 'duplex')) %></td>
|
||||
<td><%= get('IP', '<em>none</em>') %></td>
|
||||
<td class="mac-address"><%= get('MAC') %></td>
|
||||
<td><%= get(metrics, 'vendor_name') %> <%= get(metrics, 'device_name') %></td>
|
||||
<td><%= linkState() %></td>
|
||||
</script>
|
||||
|
||||
|
||||
@@ -1304,7 +1304,7 @@
|
||||
'itemView': NetworksListItemView,
|
||||
|
||||
'initialize': function () {
|
||||
this.collection = this.model.get('networks');
|
||||
this.collection = this.model.get('PIFs');
|
||||
},
|
||||
});
|
||||
|
||||
@@ -1675,10 +1675,10 @@
|
||||
pool.set('SRs', SRs);
|
||||
|
||||
// @todo
|
||||
// var networks = app.collections.network.subset(function (network) {
|
||||
// return (network.get('pool') === id);
|
||||
// });
|
||||
pool.set('networks', new Collection());
|
||||
var PIFs = app.collections.PIF.subset(function (PIF) {
|
||||
return (PIF.get('pool') === id);
|
||||
});
|
||||
pool.set('PIFs', PIFs);
|
||||
}
|
||||
collections.pool.on('add', link_pools);
|
||||
collections.pool.on('change', link_pools);
|
||||
|
||||
Reference in New Issue
Block a user