refactor von name zu listName und apiCall URI
This commit is contained in:
1 parent
8307e50d24
commit
ca6c4bdf9e
1 file changed
+2
-2
@@ -13,14 +13,14 @@ xmlns:th="http://www.thymeleaf.org">
|
||||
<body>
|
||||
|
||||
<div class="createShoppingList">
|
||||
<form th:action="@{/list}" method="post">
|
||||
<form th:action="@{api/list}" method="post">
|
||||
<input type="text" name="listName" required />
|
||||
<button type="submit">Neue Liste erstellen</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="shoppingListOverwiev">
|
||||
<ul th:each="shoppingList : ${lists}" >
|
||||
<li class="shoppingListOverview__shoppingList" th:id="${shoppingList.id}" th:attr="name=${shoppingList.name}">
|
||||
<li class="shoppingListOverview__shoppingList" th:id="${shoppingList.id}" th:attr="name=${shoppingList.listName}">
|
||||
<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>
|
||||
|
||||
Reference in new issue
Block a user