fix: enhance layout consistency in CPUisol.page, CPUpin.page, and CPUvms.page

- Wrapped tables in CPUisol.page, CPUpin.page, and CPUvms.page within divs for improved layout structure.
- This change continues the effort to enhance visual consistency across the plugin.
This commit is contained in:
Zack Spear
2025-05-21 11:56:17 -07:00
parent 6ec34511d8
commit 1b962159df
3 changed files with 36 additions and 12 deletions
+12 -4
View File
@@ -16,10 +16,18 @@ Tag="icon-cpu"
?>
<form name="is">
<input type="hidden" name="names" value="isolcpus">
<table class='tablesorter shift' style='width:auto'>
<thead><tr><th><i class="fa fa-list"></i> _(Isolation)_</th><?create()?></tr></thead>
<tbody id="table-is"><?=$spinner?></tbody>
</table>
<div class="TableContainer">
<table class='tablesorter shift' style='width:auto'>
<thead>
<tr>
<th><i class="fa fa-list"></i> _(Isolation)_</th>
<?create()?>
</tr>
</thead>
<tbody id="table-is"><?=$spinner?></tbody>
</table>
</div>
<input type="button" value="_(Apply)_" onclick="apply(this.form)" disabled><input type="button" value="_(Done)_" onclick="done()"><span id="wait-is" class="red-text" style="display:none"><i class="fa fa-spinner fa-spin"></i> _(Please wait)_...</span>
</form>
<?if (!$safemode):?>
+13 -4
View File
@@ -17,10 +17,19 @@ Tag="icon-cpu"
<?if ($dockerd):?>
<form name="ct">
<input type="hidden" name="names" id="names-ct" value="">
<table class='tablesorter shift' style='width:auto'>
<thead><tr><th><i class="fa fa-list"></i> _(Container)_</th><?create()?></tr></thead>
<tbody id="table-ct"><?=$spinner?></tbody>
</table>
<div class="TableContainer">
<table class='tablesorter shift' style='width:auto'>
<thead>
<tr>
<th><i class="fa fa-list"></i> _(Container)_</th>
<?create()?>
</tr>
</thead>
<tbody id="table-ct">
<?=$spinner?>
</tbody>
</table>
</div>
<input type="button" value="_(Apply)_" onclick="apply(this.form)" disabled><input type="button" value="_(Done)_" onclick="done()"><span id="wait-ct" class="red-text" style="display:none"><i class="fa fa-spinner fa-spin"></i> _(Please wait)_...</span>
</form>
<?else:?>
+11 -4
View File
@@ -311,10 +311,17 @@ $(function() {
<?if ($libvirtd):?>
<form name="vm">
<input type="hidden" name="names" id="names-vm" value="">
<table class='tablesorter shift' style='width:auto'>
<thead><tr><th><i class="fa fa-list"></i> _(VM)_</th><?create("vm")?></tr></thead>
<tbody id="table-vm"><?=$spinner?></tbody>
</table>
<div class="TableContainer">
<table class='tablesorter shift' style='width:auto'>
<thead>
<tr>
<th><i class="fa fa-list"></i> _(VM)_</th>
<?create("vm")?>
</tr>
</thead>
<tbody id="table-vm"><?=$spinner?></tbody>
</table>
</div>
<input type="button" value="_(Apply)_" onclick="apply(this.form)" disabled><input type="button" value="_(Done)_" onclick="done()"><span id="wait-vm" class="red-text" style="display:none"><i class="fa fa-spinner fa-spin"></i> _(Please wait)_...</span>
</form>
<?else:?>