cloudstack 3.0 new UI - disk offering page - add custom field in listView. show disk size as N/A if its value is 0.

This commit is contained in:
Jessica Wang 2011-12-21 09:47:40 -08:00
parent df83487be9
commit 45b5a0c2c1

View File

@ -605,13 +605,20 @@
label: 'Disk offerings',
fields: {
name: { label: 'Name' },
displaytext: { label: 'Description' },
disksize: {
label: 'Disk Size',
converter: function(args) {
return args + " GB";
}
}
displaytext: { label: 'Description' },
iscustomized: {
label: 'Custom disk size',
converter: cloudStack.converters.toBooleanText
},
disksize: {
label: 'Disk Size',
converter: function(args) {
if(args != 0)
return args + " GB";
else
return "N/A";
}
}
},
dataProvider: function(args) {
$.ajax({
@ -804,13 +811,16 @@
isEditable: true
},
iscustomized: {
label: 'Customized',
label: 'Custom disk size',
converter: cloudStack.converters.toBooleanText
},
disksize: {
label: 'Disk Size',
converter: function(args) {
return args + " GB";
converter: function(args) {
if(args != 0)
return args + " GB";
else
return "N/A";
}
},
tags: { label: 'Storage tags' },