summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-04-01 13:55:05 +0200
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-04-04 10:13:04 +0200
commit1869ad6eb49dedc2fe7e3bd75b16ca7595c809ee (patch)
tree2cb1251ac996015e8a16b24c9b355e080b967904
parentf86eaffefe26607c9dbef2f94cf77a883fe38ede (diff)
Submit disk form on change of dropdown list
Also remove send button as it not necessary anymore.
-rw-r--r--ogcp/templates/actions/setup.html6
1 files changed, 1 insertions, 5 deletions
diff --git a/ogcp/templates/actions/setup.html b/ogcp/templates/actions/setup.html
index 9d8fc28..a2b382a 100644
--- a/ogcp/templates/actions/setup.html
+++ b/ogcp/templates/actions/setup.html
@@ -27,16 +27,12 @@
<tbody data-target="partitons-fieldset" id="setupTable" class="text-center">
<tr>
<td>
- <select form="changeDiskForm" name="disk">
+ <select form="changeDiskForm" name="disk" onchange="this.form.submit()">
{% for disk in disks %}
<option {% if disk == selected_disk %}selected{% endif %}
value="{{ disk }}">{{ disk }}</option>
{% endfor %}
</select>
- <button class="btn btn-dark" form="changeDiskForm" formmethod="get"
- formaction="{{ url_for('action_setup_show') }}">
- {{ _('Change disk') }}
- </button>
</td>
{{ form.hidden_tag() }}
<td>{{ form.disk_type(class_="form-control") }}</td>