Add virtio gu(2d) as an option of template.

This commit is contained in:
SimonFair
2024-10-06 11:17:19 +01:00
parent 03346f4709
commit 9a502776a1
3 changed files with 11 additions and 2 deletions
@@ -273,7 +273,8 @@ foreach ($vms as $vm) {
if ($snap['parent'] == "" || $snap['parent'] == "Base") $j++;
$steps[$j] .= $snap['name'].';';
}
echo "<thead class='child' child-id='$i'><tr><th><i class='fa fa-clone'></i> <b>",_('Snapshots'),"</b></th><th></th><th>",_('Date/Time'),"</th><th>",_('Type (Method)'),"</th><th>",_('Parent'),"</th><th>",_('Memory'),"</th></tr></thead>";
echo "<table class='tablesorter snap'>";
echo "<thead class='child' child-id='$i'><tr><th><i class='fa fa-clone'></i> <b>",_('Snapshots'),"</b></th><th>",_('Description'),"</th><th>",_('Date/Time'),"</th><th>",_('Type (Method)'),"</th><th>",_('Parent'),"</th><th>",_('Memory'),"</th></tr></thead>";
echo "<tbody class='child'child-id='$i'>";
foreach ($steps as $stepsline) {
$snapshotlist = explode(";",$stepsline);
@@ -1115,7 +1115,8 @@ private static $encoding = 'UTF-8';
$arrValidVNCModels = [
'cirrus' => 'Cirrus',
'qxl' => 'QXL (best)',
'vmvga' => 'vmvga'
'vmvga' => 'vmvga',
'virtio' => 'Virtio(2d)'
];
return $arrValidVNCModels;
@@ -13,6 +13,13 @@ table.domdisk thead tr th:nth-child(1){padding-left:72px}
table.domdisk tbody tr td:nth-child(1){padding-left:72px}
table.domdisk tbody tr:nth-child(even){background-color:transparent!important}
table.domdisk tbody tr:nth-child(4n-1){background-color:transparent!important}
table.snap thead tr th:nth-child(1){width:56%!important}
table.snap thead tr th:nth-child(1){width:20%!important}
table.snap thead tr th:nth-child(n+2){width:8%!important}
table.snap thead tr th:nth-child(1){padding-left:72px}
table.snap tbody tr td:nth-child(1){padding-left:72px}
table.snap tbody tr:nth-child(even){background-color:transparent!important}
table.snap tbody tr:nth-child(4n-1){background-color:transparent!important}
table.snapshot{margin-top:0}
table tbody td{line-height:normal}
i.mover{margin-right:8px;display:none}