fix: enhance layout consistency in NewConfig.page

- Updated the form layout by wrapping elements in spans and labels for improved visual structure.
- Removed the now-unnecessary NewConfig.css file as its styles are no longer needed.
- This change continues the effort to enhance layout consistency across the plugin.
This commit is contained in:
Zack Spear
2025-05-20 17:39:45 -07:00
parent 12e17f4ddb
commit bc3bf7d564
2 changed files with 27 additions and 21 deletions

View File

@@ -58,23 +58,34 @@ effect of making it ***impossible*** to rebuild an existing failed drive - you h
:end
<hr>
<form name="newConfig" method="POST" action="/update.htm" target="progressFrame" onsubmit="prepareNewConfig(this)">
<form markdown="1" name="newConfig" method="POST" action="/update.htm" target="progressFrame" onsubmit="prepareNewConfig(this)">
<input type="hidden" name="preserveArray" value="yes" disabled>
<input type="hidden" name="preserveCache" value="yes" disabled>
<span class="indent">_(Preserve current assignments)_:</span>
<select id="s1" name="preset" multiple="multiple" style="display:none">
<option value=''>_(All)_</option>
<?=mk_option_check(0,'array',_('Array slots'))?>
<?=mk_option_check(0,'cache',_('Pool slots'))?>
</select>
<br>
<span class="indent"><input type="submit" class="lock" name="cmdInit" value="_(Apply)_" disabled><input type="button" class="lock" value="_(Done)_" onclick="done()"></span>
<?if ($newarray):?>
_(Array has been **Reset**)_ (_(please configure)_)
<?elseif ($disabled):?>
_(Array must be **Stopped** to change)_
<?else:?>
<input type="checkbox" onClick="cmdInit.disabled=!this.checked"><small>_(Yes, I want to do this)_</small>
<?endif;?>
_(Preserve current assignments)_:
: <select id="s1" name="preset" multiple="multiple" style="display:none">
<option value=''>_(All)_</option>
<?=mk_option_check(0,'array',_('Array slots'))?>
<?=mk_option_check(0,'cache',_('Pool slots'))?>
</select>
&nbsp;
: <span class="inline-block">
<?if ($newarray):?>
_(Array has been **Reset**)_ (_(please configure)_)
<?elseif ($disabled):?>
_(Array must be **Stopped** to change)_
<?else:?>
<label>
<input type="checkbox" onClick="cmdInit.disabled=!this.checked">
_(Yes, I want to do this)_
</label>
<?endif;?>
</span>
&nbsp;
: <span class="inline-block">
<input type="submit" class="lock" name="cmdInit" value="_(Apply)_" disabled>
<input type="button" class="lock" value="_(Done)_" onclick="done()">
</span>
</form>

View File

@@ -1,5 +0,0 @@
span.indent {
display: inline-block;
width: 240px;
margin-top: 30px;
}