mirror of
https://github.com/unraid/webgui.git
synced 2026-01-21 17:10:15 -06:00
fix: DeviceInfo balance status
- prevented markdown parsing issue by building the dl > dt + dd structure manually
This commit is contained in:
@@ -932,8 +932,12 @@ _(pool device stats)_:
|
||||
_(btrfs filesystem usage)_:
|
||||
: <pre><?= htmlspecialchars(shell_exec("/sbin/btrfs fi usage -T ".escapeshellarg("/mnt/$tag")) ?? '', ENT_QUOTES, 'UTF-8') ?></pre>
|
||||
|
||||
_(btrfs balance status)_:
|
||||
: <pre id='btrfs-balance'><?= implode("\n", $balance_status) ?></pre>
|
||||
<div>
|
||||
<dl>
|
||||
<dt><?= _('btrfs balance status') ?>:</dt>
|
||||
<dd><pre id='btrfs-balance'><?= implode("\n", $balance_status) ?></pre></dd>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
<?if ($retval != 0):?>
|
||||
<input type="hidden" name="#command" value="/webGui/scripts/btrfs_balance">
|
||||
@@ -946,7 +950,6 @@ _(btrfs balance status)_:
|
||||
|
||||
|
||||
: <span class="inline-block">
|
||||
<input type="submit" value="_(Balance)_">
|
||||
<?if (_var($disk,'devices',0)>1):?>
|
||||
<select onchange="updateMode(this.form,this.value)">
|
||||
<?=mk_option(1, '', _('Perform full balance'))?>
|
||||
@@ -964,6 +967,11 @@ _(btrfs balance status)_:
|
||||
<?endif;?>
|
||||
</span>
|
||||
|
||||
|
||||
: <span class="buttons-spaced">
|
||||
<input type="submit" value="_(Balance)_">
|
||||
</span>
|
||||
|
||||
:info_btrfs_balance_help:
|
||||
|
||||
<?else:?>
|
||||
@@ -1586,11 +1594,11 @@ _(SMART controller type)_:
|
||||
<span class="inline-block">
|
||||
<input type="text" name="smPort1" value="<?=_var($disk, 'smPort1')?>" class="option">
|
||||
<select name="smPort1" class="narrow option" disabled></select>
|
||||
<input type="text" name="smPort2" value="<?=_var($disk,'smPort2')?>" class="option">
|
||||
<input type="text" name="smPort2" value="<?=_var($disk, 'smPort2')?>" class="option">
|
||||
<select name="smPort2" class="narrow option" disabled></select>
|
||||
<input type="text" name="smPort3" value="<?=_var($disk,'smPort3')?>" class="option">
|
||||
<input type="text" name="smPort3" value="<?=_var($disk, 'smPort3')?>" class="option">
|
||||
<select name="smPort3" class="narrow option" disabled></select><span id="devtext">/dev/</span>
|
||||
<input type="text" name="smDevice" value="<?=_var($disk,'smDevice')?>" class="option" placeholder="<?=$dev?>">
|
||||
<input type="text" name="smDevice" value="<?=_var($disk, 'smDevice')?>" class="option" placeholder="<?=$dev?>">
|
||||
</span>
|
||||
<span id="helptext">_(enter disk index and device name as applicable to your controller)_</span>
|
||||
|
||||
@@ -1604,10 +1612,10 @@ _(SMART attribute notifications)_:
|
||||
|
||||
: <span class="inline-block">
|
||||
<label class="inline-block">
|
||||
<input type="checkbox" name="at<?=$x?>" value="<?=_var($preselect[$x],'code')?>"<?=in_array(_var($preselect[$x],'code'),$events) ? ' checked' : ''?>>
|
||||
<span class="code">_(Attribute)_ = <?=_var($preselect[$x],'code')?></span>
|
||||
<input type="checkbox" name="at<?=$x?>" value="<?=_var($preselect[$x], 'code')?>"<?=in_array(_var($preselect[$x], 'code'), $events) ? ' checked' : ''?>>
|
||||
<span class="code">_(Attribute)_ = <?=_var($preselect[$x], 'code')?></span>
|
||||
</label>
|
||||
<span class="inline-block"><?=_var($preselect[$x],'text')?></span>
|
||||
<span class="inline-block"><?=_var($preselect[$x], 'text')?></span>
|
||||
</span>
|
||||
<?endfor;?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user