diff --git a/src/sunstone/public/js/plugins/vms-tab.js b/src/sunstone/public/js/plugins/vms-tab.js index 84c550308a..61c6611270 100644 --- a/src/sunstone/public/js/plugins/vms-tab.js +++ b/src/sunstone/public/js/plugins/vms-tab.js @@ -1380,7 +1380,7 @@ function generatePlacementTable(vm){ var html = '
\ - \ +
\ \ \ \ @@ -1398,7 +1398,7 @@ function generatePlacementTable(vm){ \
'+tr("Placement - Host")+'
\
\ - \ +
\ \ \ \ @@ -1419,7 +1419,7 @@ function generatePlacementTable(vm){ if (vm.USER_TEMPLATE.SCHED_MESSAGE) { html += '
\ -
'+tr("Placement - Datastore")+'
\ +
\ \ \ \ @@ -1435,7 +1435,7 @@ function generatePlacementTable(vm){ } html += '
\ -
'+tr("Sched Message")+'
\ +
\ \ \ \ @@ -1719,9 +1719,6 @@ function printActionsTable(vm_info) { var str = '
\ - \ -

\ -
\
'+tr("#")+'
\ \ \ @@ -1731,6 +1728,7 @@ function printActionsTable(vm_info) \ \ \ + \ \ ' + fromJSONtoActionsTable( @@ -1986,10 +1984,10 @@ function printDisks(vm_info){ // If VM is not RUNNING, then we forget about the attach disk form. if (vm_info.STATE == "3" && vm_info.LCM_STATE == "3"){ html += '\ - ' + ' } else { html += '\ - ' + ' } } @@ -2291,30 +2289,9 @@ function hotpluggingOps(){ } function printNics(vm_info){ - var html ='\ -
\ -
\ -
\ -
' - - if (Config.isTabActionEnabled("vms-tab", "VM.attachnic")) { - // If VM is not RUNNING, then we forget about the attach nic form. - if (vm_info.STATE == "3" && vm_info.LCM_STATE == "3"){ - html += '\ - ' - } else { - html += '\ - ' - } - } - - html += '
\ -
\ -
' - - html += '\ + var html ='\
\ -
'+tr("DONE")+''+tr("MESSAGE")+''+tr("Actions")+'
\ +
\ \ \ \ @@ -2324,6 +2301,20 @@ function printNics(vm_info){ \ \ \ + \ \ \ '; @@ -2551,10 +2542,10 @@ function printCapacity(vm_info){ // If VM is not INIT, PENDING, HOLD, FAILED, POWEROFF, UNDEPLOYED, then we forget about the resize form. if (vm_info.STATE == "0" || vm_info.STATE == "1" || vm_info.STATE == "2" || vm_info.STATE == "7" || vm_info.STATE == "8" || vm_info.STATE == "9"){ html += '\ - ' + ' } else { html += '\ - ' + ' } } @@ -2706,35 +2697,29 @@ function updateVMSnapshotsInfo(request,vm){ // And a form to attach a new disk to the VM, if it is running. function printSnapshots(vm_info){ var html ='\ -
\ -
\ \ -
' - - if (Config.isTabActionEnabled("vms-tab", "VM.snapshot_create")) { - // If VM is not RUNNING, then we forget about the attach disk form. - if (vm_info.STATE == "3" && vm_info.LCM_STATE == "3"){ - html += '\ - ' - } else { - html += '\ - ' - } - } - - html += '
\ -
\ -
' - - html += '\
\ -
'+tr("ID")+''+tr("IPv6 Site")+''+tr("IPv6 Global")+''+tr("Actions")+''; + + if (Config.isTabActionEnabled("vms-tab", "VM.attachnic")) { + // If VM is not RUNNING, then we forget about the attach nic form. + if (vm_info.STATE == "3" && vm_info.LCM_STATE == "3"){ + html += '\ + ' + } else { + html += '\ + ' + } + } + + html += '
\ +
\ \ \ \ \ \ \ + \ \ \ ';
'+tr("ID")+''+tr("Name")+''+tr("Timestamp")+''+tr("Actions")+'' + + if (Config.isTabActionEnabled("vms-tab", "VM.snapshot_create")) { + // If VM is not RUNNING, then we forget about the attach disk form. + if (vm_info.STATE == "3" && vm_info.LCM_STATE == "3"){ + html += '\ + ' + } else { + html += '\ + ' + } + } + + html += '