diff options
author | Georg Pfuetzenreuter | 2022-05-12 01:43:27 +0200 |
---|---|---|
committer | Georg Pfuetzenreuter | 2022-05-12 01:43:27 +0200 |
commit | 789bd112f3bf7e99dd7ddcbc71743aea7ff89cc6 (patch) | |
tree | 5d50474a7352b0e3e05d2fa4f51929b68fcc773e /src/main/resources/templates/portal.html | |
parent | 9648a8b9d03fce135b60f03379d92b628ff10a9a (diff) | |
download | pubsh-web-789bd112f3bf7e99dd7ddcbc71743aea7ff89cc6.tar.gz pubsh-web-789bd112f3bf7e99dd7ddcbc71743aea7ff89cc6.tar.bz2 pubsh-web-789bd112f3bf7e99dd7ddcbc71743aea7ff89cc6.zip |
Add expiration date to frontend, custom container object
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Diffstat (limited to 'src/main/resources/templates/portal.html')
-rw-r--r-- | src/main/resources/templates/portal.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/resources/templates/portal.html b/src/main/resources/templates/portal.html index f5e9342..3db362c 100644 --- a/src/main/resources/templates/portal.html +++ b/src/main/resources/templates/portal.html @@ -22,6 +22,7 @@ <option value="">Select duration ...</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="3600" th:attr="value=3600" th:text="3600"></option> </select> <button class="btn btn-primary" th:id="request_submission" th:type="submit">Generate</button> </form> @@ -49,11 +50,12 @@ <h3>Existing shells:</h3> <table th:if="${docker_containers!=null and !docker_containers.empty}"> - <tr th:each="container: ${docker_containers}"> - <td th:text="${container.names[0]}" /> + <tr th:each="container: ${custom_containers}"> + <td th:text="${container.name}" /> <!-- td th:text="${container.image}" / --> <!-- td th:text="${container.id}" / --> <td th:text="${container.status}" /> + <td th:text="${container.ExpirationDate}" /> <td> <form id="deletion_pseudoform" action="#" th:action="@{'/frontend/shell/delete/{id}'(id=${container.id})}" th:method="delete" th:containerid="${container.id}" th:containerShaSum="${container.imageId}" th:onsubmit="return confirm('Do you really want to delete the container with ID ' + this.getAttribute('containerid') + ' which is attached to the image with checksum ' + this.getAttribute('containerShaSum') + ' ?');"> <button class="btn btn-danger" id="deletion_submission" type="submit">Delete</button> |