<!DOCTYPE html> <html xmlns:th="http://www.thymeleaf.org"> <head th:include="layout :: headerFragment"> </head> <body> <div id="container"> <h1> Hello, <span th:text="${username}"></span>. </h1> <div th:if="${attribute01 != null}" th:text="${attribute01}"></div> <h2>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> <table> <tr th:each="container: ${docker_containers}"> <td th:text="${container.names[0]}" /> <td th:text="${container.image}" /> <td th:text="${container.id}" /> <td th:text="${container.status}" /> <!-- td><form id="deletion_pseudoform" action="#" th:action="@{'/frontend/container/delete/{id}'(id=${container.id})}" th:method="delete" > <input type="hidden" name="_method" value="delete" /> <button id="deletion_submission" type="submit">Delete</button> </form></td--> <td> <form id="deletion_pseudoform" action="#" th:action="@{'/frontend/container/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') + ' ?');"> <!--a href="" class="btn btn-danger " th:data-confirm-delete="|Are you sure you want to delete the container with ID ${container.id}?|" onclick="if (!confirm(this.getAttribute('data-confirm-delete'))) return false" > Delete </a--> <button class="btn btn-danger" id="deletion_submission" type="submit">Delete</button> </form> </td> <!-- th:data-confirm-delete="|Are you sure you want to delete this employee ${tempEmployee.firstName}?|" onclick="if (!confirm(this.getAttribute('data-confirm-delete'))) return false" --> </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> </div> <!-- container --> </body> </html>