diff options
Diffstat (limited to 'src/main/resources/templates/admin.html')
-rw-r--r-- | src/main/resources/templates/admin.html | 33 |
1 files changed, 13 insertions, 20 deletions
diff --git a/src/main/resources/templates/admin.html b/src/main/resources/templates/admin.html index 5a84a5a..88ef9e4 100644 --- a/src/main/resources/templates/admin.html +++ b/src/main/resources/templates/admin.html @@ -8,6 +8,19 @@ <h1> Hello, <span th:text="${username}"></span>. </h1> + <h2>Generate new shell:</h2> + <p>Warning! Shells created from the administration panel are not covered by the cleanup logic!</p> + <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('osoption') + ' - 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:attr="value=${osoption}" + th:text="${osoption}"></option> + </select> + <button class="btn btn-primary" th:id="request_submission" th:type="submit">Generate</button> + </form> <div th:if="${attribute01 != null}" th:text="${attribute01}"></div> <h2>Available images:</h2> <table> @@ -27,23 +40,6 @@ <td th:text="${image.created}" /> </tr> </table> - - <h2>Generate new throw-away shell:</h2> - <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('osoption') + ' - 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:attr="value=${osoption}" - th:text="${osoption}"></option> - </select> - <button class="btn btn-primary" th:id="request_submission" th:type="submit">Generate</button> - </form> - - - - <h2>Existing containers:</h2> <table> <tr th:each="container: ${docker_containers}"> @@ -74,9 +70,6 @@ </tr> </table> - - - <p></p> <a href="/logout">Logout</a> </div> |