diff options
Diffstat (limited to 'src/main/resources/templates/portal.html')
-rw-r--r-- | src/main/resources/templates/portal.html | 44 |
1 files changed, 21 insertions, 23 deletions
diff --git a/src/main/resources/templates/portal.html b/src/main/resources/templates/portal.html index 9947bde..eb3c765 100644 --- a/src/main/resources/templates/portal.html +++ b/src/main/resources/templates/portal.html @@ -8,14 +8,30 @@ Hello, <span th:text="${username}"></span>. </h1> <div th:if="${attribute01 != null}" th:text="${attribute01}"></div> - <h2>Docker Images:</h2> + <h2>Available Docker Images:</h2> <table> <tr th:each="image: ${docker_images}" th:if="${image.repoTags[0] != '<none>:<none>'}"> <td th:text="${image.repoTags[0]}" /> <td th:text="${image.created}" /> </tr> </table> - <h2>Docker Containers:</h2> + + <h2>Generate new throw-away shell:</h2> + <select th:field="*{availableOs}" class="form-control" id="osChoice" 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> + + + + + <h2>Existing Containers:</h2> <table> <tr th:each="container: ${docker_containers}"> <td th:text="${container.names[0]}" /> @@ -44,27 +60,9 @@ </tr> </table> - - <!--h4>We are currently running <span th:text="${docker_containercount}"></span> containers.</h4--> - - <!--table class="table table-striped"> - <thead> - <tr> - <th>ID</th> - <th>Name</th> - <th>Address</th> - <th>Service Rendered</th> - </tr> - </thead> - <tbody> - <tr th:each="customer : ${customers}"> - <td th:text="${customer.id}">Text ...</td> - <td th:text="${customer.name}">Text ...</td> - <td th:text="${customer.address}">Text ...</td> - <td th:text="${customer.serviceRendered}">Text...</td> - </tr> - </tbody> - </table--> + + + <!--div id="pagefoot" th:include="layout :: footerFragment">Footer</div--> <p></p> <a href="/logout">Logout</a> |