рабочая java + Исправленная ошибка с newItem

This commit is contained in:
DyCTaTOR 2024-05-17 00:49:20 +04:00
parent 71e4d822c7
commit 7a7cabf3e5
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -14,12 +14,12 @@
<a href="/news/edit/" class="btn btn-primary">Добавить тип заказа</a> <a href="/news/edit/" class="btn btn-primary">Добавить тип заказа</a>
</div> </div>
<div class="row"> <div class="row">
<div class="col mt-4" th:each="new : ${news}"> <div class="col mt-4" th:each="newItem : ${news}">
<div class="rectNews d-flex flex-column"> <div class="rectNews d-flex flex-column">
<img class="image1" src="./images/New1.png" alt="new1" width="100%"> <img class="image1" src="./images/New1.png" alt="new1" width="100%">
<div class="rectNewsTextBox"> <div class="rectNewsTextBox">
<span class="rectNewsText"> <span class="rectNewsText">
<b scope="row" th:text="${new.description}"></b> <b scope="row" th:text="${newItem.description}"></b>
</span> </span>
</div> </div>
</div> </div>