diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-04-01 09:33:47 +0200 |
---|---|---|
committer | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-04-04 09:28:41 +0200 |
commit | 69b127a4f7c81f9e6a3613937bec3009383c11a2 (patch) | |
tree | ea20127a5b1c481be96214cbb7633fed08b41354 | |
parent | a2a5e4ed78d7971efe54ea6becbf1f4e9d3d703f (diff) |
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".
-rw-r--r-- | ogcp/templates/actions/setup.html | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/ogcp/templates/actions/setup.html b/ogcp/templates/actions/setup.html index 5dd3528..d741725 100644 --- a/ogcp/templates/actions/setup.html +++ b/ogcp/templates/actions/setup.html @@ -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> |