mirror of https://git.48k.eu/ogcp
Move setup's disk selector
Move disk selector from the bottom of the page to the first table, nearby "Partition Table Type" and "Total Disk Size".multi-ogserver
parent
a2a5e4ed78
commit
69b127a4f7
|
@ -13,6 +13,7 @@
|
|||
<table class="table">
|
||||
<thead class="text-center">
|
||||
<tr>
|
||||
<th>{{ _('Disk') }}</th>
|
||||
<th>{{ _('Partition Table Type') }}</th>
|
||||
<th>{{ _('Total Disk Size') }} (MB)</th>
|
||||
</tr>
|
||||
|
@ -20,6 +21,18 @@
|
|||
|
||||
<tbody data-target="partitons-fieldset" id="setupTable" class="text-center">
|
||||
<tr>
|
||||
<td>
|
||||
<select form="scopesForm" name="disk" >
|
||||
{% for disk in disks %}
|
||||
<option {% if disk == selected_disk %}selected{% endif %}
|
||||
value="{{ disk }}">{{ disk }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<button class="btn btn-dark" form="scopesForm" formmethod="get"
|
||||
formaction="{{ url_for('action_setup_show') }}">
|
||||
{{ _('Change disk') }}
|
||||
</button>
|
||||
</td>
|
||||
{{ form.hidden_tag() }}
|
||||
<td>{{ form.disk_type(class_="form-control") }}</td>
|
||||
<td>{{ disk_size }}</td>
|
||||
|
@ -58,17 +71,6 @@
|
|||
</table>
|
||||
</form>
|
||||
|
||||
<select form="scopesForm" name="disk" >
|
||||
{% for disk in disks %}
|
||||
<option {% if disk == selected_disk %}selected{% endif %}
|
||||
value="{{ disk }}">{{ disk }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<button class="btn btn-dark" form="scopesForm" formmethod="get"
|
||||
formaction="{{ url_for('action_setup_show') }}">
|
||||
{{ _('Change disk') }}
|
||||
</button>
|
||||
|
||||
<button class="btn btn-primary" data-target="#partitionsTable" onclick="AddPartition(this)">
|
||||
{{ _('Add a new partition') }}
|
||||
</button>
|
||||
|
|
Loading…
Reference in New Issue