Merge pull request #1721 from SimonFair/Fix-VM-disk-error

Fix expand evdev options
This commit is contained in:
tom mortensen
2024-05-11 21:18:08 -07:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
Menu="VMs:0"
Title="VM Usage Statisics"
Nchan="vm_usage:start"
Nchan="vm_usage"
Cond="exec(\"grep -o '^USAGE=.Y' /boot/config/domain.cfg 2>/dev/null\") && is_file('/var/run/libvirt/libvirtd.pid')"
---
<?PHP

View File

@@ -1626,7 +1626,7 @@
<p>Windows and Hyperv Hpet:no Hypervclock: yes Pit no rtc no. </p>
</p>
</blockquote>
<?#echo "<span>".var_dump($arrConfig['evdev'])."</span>";
<?
if ( $arrConfig['evdev'] == false) {
$evdevxml = "<input type='evdev'>
@@ -1639,7 +1639,7 @@
foreach ($arrConfig['evdev'] as $i => $arrEvdev) {
$strLabel = ($i > 0) ? appendOrdinalSuffix($i + 1) : '';
?>
<table data-category="Input" data-multiple="true" data-minimum="1" data-index="<?=$i?>" data-prefix="<?=$strLabel?>">
<table data-category="evdev" data-multiple="true" data-minimum="1" data-index="<?=$i?>" data-prefix="<?=$strLabel?>">
<tr>
<td>_(Evdev Device)_:</td>
<td>
@@ -1717,7 +1717,7 @@
<?}?>
<?}?>
<script type="text/html" id="tmplevdev">
<table data-category="Input" data-multiple="true" data-minimum="1" data-index="<?=$i?>" data-prefix="<?=$strLabel?>">
<table data-category="evdev" data-multiple="true" data-minimum="1" data-index="<?=$i?>" data-prefix="<?=$strLabel?>">
<tr>
<td>_(Evdev Device)_:</td>
<td>