Make form fields required + try Podman compatibility

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
Georg Pfuetzenreuter 2022-05-11 19:40:57 +02:00
parent 2ea6f61744
commit 5adf523a01
Signed by: Georg
GPG Key ID: 1ED2F138E7E6FF57
2 changed files with 4 additions and 3 deletions

View File

@ -24,7 +24,8 @@ import com.github.dockerjava.transport.DockerHttpClient;
public class Docker { public class Docker {
static DockerClientConfig DockerConfig = DefaultDockerClientConfig.createDefaultConfigBuilder() static DockerClientConfig DockerConfig = DefaultDockerClientConfig.createDefaultConfigBuilder()
.withDockerHost("tcp://sweetsuse:2375") //.withDockerHost("tcp://sweetsuse:2375")
.withDockerHost("tcp://sweetsuse:8085")
.withDockerTlsVerify(false) .withDockerTlsVerify(false)
.build(); .build();

View File

@ -10,7 +10,7 @@
</h2> </h2>
<h3>Generate new throw-away shell:</h3> <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.');"> <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 value="">Select operating system ...</option>
<option <option
th:each="osoption : ${availableOs}" th:each="osoption : ${availableOs}"
@ -18,7 +18,7 @@
th:attr="value=${osoption}" th:attr="value=${osoption}"
th:text="${osoption}"></option> th:text="${osoption}"></option>
</select> </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 value="">Select duration ...</option>
<option th:value="5" th:attr="value=5" th:text="5"></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> <option th:value="10" th:attr="value=10" th:text="10"></option>