summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/actions/setup.html
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-04-01 11:41:04 +0200
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-04-04 09:28:49 +0200
commitf86eaffefe26607c9dbef2f94cf77a883fe38ede (patch)
treeeb1d5a34d874fb56d1c255a3f8edd9cd227817fe /ogcp/templates/actions/setup.html
parent69b127a4f7c81f9e6a3613937bec3009383c11a2 (diff)
Add form for disk selection
Disk selection uses "scopesForm" to submit the change, but setup/show view receives new parameters not provided by this form. Commit 17757baa4727 adds those parameters. This commit gives disk selection its own form with all the required parameters.
Diffstat (limited to 'ogcp/templates/actions/setup.html')
-rw-r--r--ogcp/templates/actions/setup.html9
1 files changed, 7 insertions, 2 deletions
diff --git a/ogcp/templates/actions/setup.html b/ogcp/templates/actions/setup.html
index d741725..9d8fc28 100644
--- a/ogcp/templates/actions/setup.html
+++ b/ogcp/templates/actions/setup.html
@@ -9,6 +9,11 @@
<h1 class="m-5">{{_('Partition and Format')}}</h1>
+<form method="GET" id="changeDiskForm">
+ <input type="hidden" name="ips" value="{{ ips }}"/>
+ <input type="hidden" name="selected_client" value="{{ base_client }}"/>
+</form>
+
<form class="form-inline" method="POST" id="setupForm">
<table class="table">
<thead class="text-center">
@@ -22,13 +27,13 @@
<tbody data-target="partitons-fieldset" id="setupTable" class="text-center">
<tr>
<td>
- <select form="scopesForm" name="disk" >
+ <select form="changeDiskForm" 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"
+ <button class="btn btn-dark" form="changeDiskForm" formmethod="get"
formaction="{{ url_for('action_setup_show') }}">
{{ _('Change disk') }}
</button>