summaryrefslogtreecommitdiffstats
path: root/src/main/resources/templates
diff options
context:
space:
mode:
authorGeorg Pfuetzenreuter2022-05-06 18:25:22 +0200
committerGeorg Pfuetzenreuter2022-05-06 18:25:22 +0200
commit20d049ea10c14eb335014b5c8d150f55bf437377 (patch)
treeb0f1fdef1a3ef7c3700c68349de9e50a9468531c /src/main/resources/templates
parent65688954c9f4a0393d58c695c12712707f47c527 (diff)
downloadpubsh-web-20d049ea10c14eb335014b5c8d150f55bf437377.tar.gz
pubsh-web-20d049ea10c14eb335014b5c8d150f55bf437377.tar.bz2
pubsh-web-20d049ea10c14eb335014b5c8d150f55bf437377.zip
Checkpoint
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Diffstat (limited to 'src/main/resources/templates')
-rw-r--r--src/main/resources/templates/portal.html44
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>