swt23w23/src/main/resources/templates/orders_calender.html

51 lines
1.2 KiB
HTML

<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
xmlns:sec="http://www.thymeleaf.org/extras/spring-security"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout.html(title='Kalender')}">
<head>
</head>
<body>
<div layout:fragment="content">
<table class="calendar bg-secondary-subtle" bgcolor="lightgrey" align="center" cellspacing="21" cellpadding="21">
<caption align="top">
</caption>
<thead>
<tr>
<th th:each="dayName : ${dayNames}" class="bg-primary"
>
<div
class="header"
th:text="${dayName}"
>
</div>
</th>
</tr>
</thead>
<tbody>
<tr th:each="week : ${weeksOfMonth}">
<td th:each="day : ${week}">
<div class="content">
<div
class="header"
>
<a
href="orders.html" th:href="@{'/allOrders/' + ${day.get(1)}}"
th:text="${day.get(0)}"
class="description"
>
</a>
</div>
</div>
<div class="content">
<p th:each="item, stat : ${day}" th:if="${stat.index} > 1" th:text="${item}"></p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>