Knopf für Löschen einer Listen hinzugefügt

This commit is contained in:
Technoir committed 2026-10-04 15:52:24 +02:00
1 parent e36f4cc0b7
commit fae479ae57
1 file changed
+5 -3
+5 -3
View File
@@ -6,7 +6,8 @@ xmlns:th="http://www.thymeleaf.org">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="description" content="" />
<meta name="author" content="" />
<link href="../static/css/index.css" rel="stylesheet" >
<link href="/css/index.css" rel="stylesheet" >
<script src="/js/index.js" type="module"></script>
<body>
@@ -17,9 +18,10 @@ xmlns:th="http://www.thymeleaf.org">
</form>
</div>
<div class="shoppingListOverwiev">
<ul th:each="shoppingList : ${lists}">
<li>
<ul th:each="shoppingList : ${lists}" >
<li class="shoppingListOverview__shoppingList" th:id="${shoppingList.id}" th:attr="name=${shoppingList.name}">
<a th:text="${shoppingList.listName}" th:href="@{/list/{id}(id=${shoppingList.id})}"></a>
<button type="button" class="shoppingListOverview__deleteListButton" th:attr="data-id=${shoppingList.id}">Liste löschen</button>
</li>
</ul>
</div>