itemName und Amount sind eigene spans

This commit is contained in:
Technoir committed 2026-10-09 14:40:27 +02:00
1 parent a01f3c917a
commit 086e16fc82
1 file changed
+9 -3
+9 -3
View File
@@ -45,8 +45,11 @@
<!-- Items der Kategorie -->
<ul>
<li th:each="item: ${category.itemsInCategory}" th:id="${item.id}" class="item"> <!-- erstellung von einem Item -->
<input type="checkbox" class="item__markAsDone" th:checked="${item.isDone}">
<span th:text="|${item.itemName} ${item.itemAmount}|"></span>
<input type="checkbox" class="item__markAsDone" th:checked="${item.isDone}" autocomplete="off">
<span class="item__text">
<span th:text="${item.itemName}" class="item__textName"></span>
<span th:text="${item.itemAmount}" class="item__textAmount"></span>
</span>
<button class="item__deleteButton">Löschen</button>
</li>
</ul>
@@ -54,7 +57,10 @@
<li th:each="item: ${items}" th:id="${item.id}" class="item"> <!-- erstellung items ohne Kategorie -->
<input type="checkbox" class="item__markAsDone" th:checked="${item.isDone}" autocomplete="off">
<span th:text="|${item.itemName} ${item.itemAmount}|"></span>
<span class="item__text">
<span th:text="${item.itemName}" class="item__textName"></span>
<span th:text="${item.itemAmount}" class="item__textAmount"></span>
</span>
<button class="item__deleteButton">Löschen</button>
</li>
</ul>