Merge "Added button Add Interface on Network Topology tab"

This commit is contained in:
Jenkins 2014-07-02 05:23:57 +00:00 committed by Gerrit Code Review
commit 6a08a25113
2 changed files with 3 additions and 0 deletions

View File

@ -541,6 +541,8 @@ horizon.network_topology = {
};
if (d.type === 'router') {
html_data.port = ports;
html_data.add_interface_url = d.url + 'addinterface';
html_data.add_interface_label = gettext("Add Interface");
html = balloon_tmpl.render(html_data,{
table1:device_tmpl,
table2:(ports.length > 0) ? port_tmpl : null

View File

@ -19,6 +19,7 @@
<a href="[[url]][[console]]" class="vnc_window">» [[open_console_label]]</a>
[[/console_id]]
</div>
<a class="add-interface btn btn-primary btn-mini ajax-modal [[type]]" href="[[add_interface_url]]">[[add_interface_label]]</a>
<div class="cell delete">
<button class="delete-device btn btn-danger btn-mini [[type]]" data-type="[[type]]" data-device-id="[[id]]">[[type_capital]]</button>
</div>