summaryrefslogtreecommitdiffstats
path: root/ogcp/templates
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2021-10-28 10:38:24 +0200
committerJavier Sánchez Parra <jsanchez@soleta.eu>2021-11-02 16:24:18 +0100
commitcbeafea273906d55b01d37b2803af189d6813d2d (patch)
treebc96c8c6c8080ba36096735873f8bac6c3cd6c83 /ogcp/templates
parent20a94dbc3e3e6e36655982a5569a6d7e4d0abedd (diff)
Support partition of computers with several disks
Add a new select input and button to choose which disk you want to partition. TODO: Current argument parsing function returns a list with all the arguments, except csrf_token. Future patches should add granular parsing of different types of arguments.
Diffstat (limited to 'ogcp/templates')
-rw-r--r--ogcp/templates/actions/setup.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/ogcp/templates/actions/setup.html b/ogcp/templates/actions/setup.html
index c1633c6..a2f71f9 100644
--- a/ogcp/templates/actions/setup.html
+++ b/ogcp/templates/actions/setup.html
@@ -53,6 +53,17 @@
</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>