diff options
author | Georg Pfuetzenreuter | 2022-05-07 14:12:55 +0200 |
---|---|---|
committer | Georg Pfuetzenreuter | 2022-05-07 14:12:55 +0200 |
commit | e37ec4083a8fff705185956bb8fa3b29f3c05ff8 (patch) | |
tree | 701c484bf7983b8819fac4b7f29d8d26cbdc6471 /src/main/resources | |
parent | fc9f4b56b5f13bb8f5b7b22c5b96a6d6838439de (diff) | |
download | pubsh-web-e37ec4083a8fff705185956bb8fa3b29f3c05ff8.tar.gz pubsh-web-e37ec4083a8fff705185956bb8fa3b29f3c05ff8.tar.bz2 pubsh-web-e37ec4083a8fff705185956bb8fa3b29f3c05ff8.zip |
Checkpoint: Working OS-picker
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Diffstat (limited to 'src/main/resources')
-rw-r--r-- | src/main/resources/templates/portal.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/resources/templates/portal.html b/src/main/resources/templates/portal.html index 66c5ad1..836c42e 100644 --- a/src/main/resources/templates/portal.html +++ b/src/main/resources/templates/portal.html @@ -17,16 +17,16 @@ </table> <h2>Generate new throw-away shell:</h2> - <select th:field="*{availableOs}" class="form-control" th:id="osChoice" th:name="osChoice"> + <form th:object="${osChoice}" th:id="request_pseudoform" action="#" th:action="@{'/frontend/container/add'}" th:method="post" th:os="${osoption}" 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.');"> + <select class="form-control" th:object="${osChoice}" name="osChoice"> <option value="">Select operating system ...</option> <option th:each="osoption : ${availableOs}" - th:value="${osoption}" + th:value="${osoption}" + th:attr="value=${osoption}" th:text="${osoption}"></option> </select> - - <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}" /> + <p><span th:text="${osChoice}"></span></p> <button class="btn btn-primary" th:id="request_submission" th:type="submit">Generate</button> </form> |