summaryrefslogtreecommitdiffstats
path: root/src/main/resources/templates/portal.html
diff options
context:
space:
mode:
authorGeorg Pfuetzenreuter2022-05-11 19:40:57 +0200
committerGeorg Pfuetzenreuter2022-05-11 19:40:57 +0200
commit5adf523a017908b41c03d84c1f864bb6752129f8 (patch)
tree8fdce35e3904f1ef348beae11da9a0eaa8635181 /src/main/resources/templates/portal.html
parent2ea6f6174423d426205a5e047e2bd5e4b4cd2bd9 (diff)
downloadpubsh-web-5adf523a017908b41c03d84c1f864bb6752129f8.tar.gz
pubsh-web-5adf523a017908b41c03d84c1f864bb6752129f8.tar.bz2
pubsh-web-5adf523a017908b41c03d84c1f864bb6752129f8.zip
Make form fields required + try Podman compatibility
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Diffstat (limited to 'src/main/resources/templates/portal.html')
-rw-r--r--src/main/resources/templates/portal.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/resources/templates/portal.html b/src/main/resources/templates/portal.html
index f228ec8..f5e9342 100644
--- a/src/main/resources/templates/portal.html
+++ b/src/main/resources/templates/portal.html
@@ -10,7 +10,7 @@
</h2>
<h3>Generate new throw-away shell:</h3>
<form th:object="${osChoice}" th:id="request_pseudoform" action="#" th:action="@{'/frontend/shell/add'}" th:method="post" th:os="${osChoice}" th:onsubmit="return confirm('You are about to generate a shell with the OS ' + this.getAttribute('osoption') + ' - please be patient after you confirm, as the generation may take a short while.');">
- <select class="form-control" th:object="${osChoice}" name="osChoice">
+ <select class="form-control" th:object="${osChoice}" name="osChoice" required>
<option value="">Select operating system ...</option>
<option
th:each="osoption : ${availableOs}"
@@ -18,7 +18,7 @@
th:attr="value=${osoption}"
th:text="${osoption}"></option>
</select>
- <select class="form-control" th:object="${expiry}" name="expiry">
+ <select class="form-control" th:object="${expiry}" name="expiry" required>
<option value="">Select duration ...</option>
<option th:value="5" th:attr="value=5" th:text="5"></option>
<option th:value="10" th:attr="value=10" th:text="10"></option>