mirror of
https://github.com/unraid/webgui.git
synced 2026-01-05 00:59:48 -06:00
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:
@@ -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>
|
||||
|
||||
|
||||
: <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>
|
||||
|
||||
|
||||
: <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>
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
span.indent {
|
||||
display: inline-block;
|
||||
width: 240px;
|
||||
margin-top: 30px;
|
||||
}
|
||||
Reference in New Issue
Block a user