summaryrefslogtreecommitdiffstats
path: root/src/main/resources
diff options
context:
space:
mode:
authorGeorg Pfuetzenreuter2022-05-06 21:56:06 +0200
committerGeorg Pfuetzenreuter2022-05-06 21:56:06 +0200
commitfc9f4b56b5f13bb8f5b7b22c5b96a6d6838439de (patch)
tree804eb28f02ad87838e617e9d35d1cc53bdffa02d /src/main/resources
parent20d049ea10c14eb335014b5c8d150f55bf437377 (diff)
downloadpubsh-web-fc9f4b56b5f13bb8f5b7b22c5b96a6d6838439de.tar.gz
pubsh-web-fc9f4b56b5f13bb8f5b7b22c5b96a6d6838439de.tar.bz2
pubsh-web-fc9f4b56b5f13bb8f5b7b22c5b96a6d6838439de.zip
Checkpoint
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Diffstat (limited to 'src/main/resources')
-rw-r--r--src/main/resources/templates/portal.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main/resources/templates/portal.html b/src/main/resources/templates/portal.html
index eb3c765..66c5ad1 100644
--- a/src/main/resources/templates/portal.html
+++ b/src/main/resources/templates/portal.html
@@ -17,15 +17,17 @@
</table>
<h2>Generate new throw-away shell:</h2>
- <select th:field="*{availableOs}" class="form-control" id="osChoice" name="osChoice">
+ <select th:field="*{availableOs}" class="form-control" th:id="osChoice" th:name="osChoice">
<option value="">Select operating system ...</option>
<option
th:each="osoption : ${availableOs}"
th:value="${osoption}"
th:text="${osoption}"></option>
</select>
- <form th:object="${osChoice}" id="request_pseudoform" action="#" th:action="@{'/frontend/container/add}" th:method="post" th:os="${osChoice}" th:onsubmit="return confirm('You are about to generate a shell with the OS ' + this.getAttribute('os') + ' - please be patient after you confirm, as the generation may take a short while.');">
- <button class="btn btn-primary" id="request_submission" type="submit">Generate</button>
+
+ <form th:object="${osChoice}" th:id="request_pseudoform" action="#" th:action="@{'/frontend/container/add'}" th:method="post" th:os="${osChoice}" th:onsubmit="return confirm('You are about to generate a shell with the OS ' + this.getAttribute('os') + ' - please be patient after you confirm, as the generation may take a short while.');">
+ <input th:type="hidden" th:method="post" th:name="osChoice" th:value="osChoice" th:attr="value = ${osChoice}" />
+ <button class="btn btn-primary" th:id="request_submission" th:type="submit">Generate</button>
</form>