better fav support

This commit is contained in:
Jörg Henke
2025-11-24 11:51:00 +01:00
parent a172ec0d70
commit 7bcc165004
5 changed files with 40 additions and 13 deletions

View File

@@ -100,14 +100,17 @@
<button class="btn btn-outline-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">Favoriten</button>
<ul class="dropdown-menu">
<li th:each="f : ${favorites}">
<a class="dropdown-item" th:href="@{/done/usefav/{id}(id=${f.fkFavorite})}">
<span class="row" style="min-width: 512px">
<span class="col-1" th:text="${f.load}"></span>
<span class="col-2" th:text="${f.project}"></span>
<span class="col-3" th:text="${f.module}"></span>
<span class="col-6" th:text="${f.job}"></span>
</span>
</a>
<table>
<tr><td><a class="text-danger" th:href="@{/done/unfavorize_by_id/{id}(id=${f.fkFavorite})}"><i class="fa fa-trash"></i></a></td>
<td><a class="dropdown-item" th:href="@{/done/usefav/{id}(id=${f.fkFavorite})}">
<span class="row" style="min-width: 640px">
<span class="col-1" th:text="${f.load}"></span>
<span class="col-2" th:text="${f.project}"></span>
<span class="col-3" th:text="${f.module}"></span>
<span class="col-6" th:text="${f.job}"></span>
</span>
</a></td></tr>
</table>
</li>
</ul>
</div>