darstellung kategorie und dessen items
This commit is contained in:
1 parent
09fa991077
commit
8307e50d24
1 file changed
+16
-4
@@ -10,10 +10,10 @@
|
||||
</head>
|
||||
<body>
|
||||
<div class="title">
|
||||
<h1>Einkaufsliste</h1>
|
||||
<h1 th:text="${list.listName}"></h1>
|
||||
</div>
|
||||
|
||||
<div class="list">
|
||||
<div class="list" th:id="${list.id}">
|
||||
<form class="addCategoryForm">
|
||||
<span>Neue Kategorie hinzufügen:</span>
|
||||
<input type="text" class="addCategoryForm__nameInput" name="categoryName" placeholder="Neue Kategorie hinzufügen...">
|
||||
@@ -32,8 +32,20 @@
|
||||
</form>
|
||||
|
||||
<button class="deleteAllDoneItemsButton">Alle fertigen Items löschen</button>
|
||||
<ul class="displayedList">
|
||||
</ul>
|
||||
|
||||
|
||||
<ul class="displayedList">
|
||||
<li> <!-- Es werden erste alle Kategorien erstellt -->
|
||||
<ul class="displayedList__categoryName--bold displayedList__categoryName--big"
|
||||
th:each="category: ${categories}"
|
||||
th:id="${category.id}"
|
||||
th:text="${category.categoryName}"> <!-- für jede Kategorie wird ein ul erstellt in welcher dann die Items aufgeführt werden -->
|
||||
<li th:each="item: ${category.itemsInCategory}">
|
||||
<span th:text="${item.itemName}"></span>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
|
||||
Reference in new issue
Block a user