bug 12557: Instances NICs tab

-Show whether NIC is default

-Add title to each NIC

-Cleanup styling of NICs tab

status 12557: resolved fixed
This commit is contained in:
Brian Federle 2011-12-15 12:48:36 -08:00
parent 9ba4691737
commit 0358ef8166
2 changed files with 24 additions and 4 deletions

View File

@ -1268,6 +1268,11 @@ div.list-view td.state.off span {
border-top: none;
}
.details.group-multiple table.header {
width: 94%;
margin-bottom: 1px;
}
.details.group-multiple table tbody {
border-top: 1px solid #F2F0F0;
}
@ -1324,7 +1329,7 @@ div.list-view td.state.off span {
}
div.group-multiple div.detail-group table {
margin-top: -12px;
margin-top: -1px;
}
div.group-multiple div.detail-group table.header {

View File

@ -1623,15 +1623,30 @@
multiple: true,
fields: [
{
id: { label: 'ID' },
name: { label: 'Name', header: true },
ipaddress: { label: 'IP Address' },
type: { label: 'Type' },
gateway: { label: 'Default gateway' },
netmask: { label: 'Netmask' }
netmask: { label: 'Netmask' },
isdefault: {
label: 'Default',
converter: function(data) {
return data ? 'Yes' : 'No';
}
}
}
],
dataProvider: function(args) {
args.response.success({data: args.context.instances[0].nic});
args.response.success({data: $.map(args.context.instances[0].nic, function(nic, index) {
var name = 'NIC ' + (index + 1);
if (nic.isdefault) {
name += ' (Default)';
}
return $.extend(nic, {
name: name
});
})});
}
},