2023-11-12 14:42:07 +01:00
|
|
|
<!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"
|
2023-11-13 20:09:39 +01:00
|
|
|
layout:decorate="~{layout.html(title='Kalender')}">
|
2023-11-12 14:42:07 +01:00
|
|
|
<head>
|
|
|
|
</head>
|
|
|
|
<body>
|
2023-11-15 17:27:04 +01:00
|
|
|
<div layout:fragment="content">
|
|
|
|
<table class="calendar bg-secondary-subtle">
|
2023-11-12 14:42:07 +01:00
|
|
|
|
|
|
|
<!-- The tr tag is used to enter
|
|
|
|
rows in the table -->
|
|
|
|
|
|
|
|
<!-- It is used to give the heading to the
|
|
|
|
table. We can give the heading to the
|
|
|
|
top and bottom of the table -->
|
|
|
|
|
|
|
|
<caption align="top">
|
|
|
|
<!-- Here we have used the attribute
|
|
|
|
that is style and we have colored
|
|
|
|
the sentence to make it better
|
|
|
|
depending on the web page-->
|
|
|
|
</caption>
|
|
|
|
|
|
|
|
<!-- Here th stands for the heading of the
|
|
|
|
table that comes in the first row-->
|
|
|
|
|
|
|
|
<!-- The text in this table header tag will
|
|
|
|
appear as bold and is center aligned-->
|
|
|
|
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<!-- Here we have applied inline style
|
|
|
|
to make it more attractive-->
|
2023-11-15 17:27:04 +01:00
|
|
|
<th th:each="dayName : ${dayNames}" class="bg-primary"
|
2023-11-12 14:42:07 +01:00
|
|
|
>
|
|
|
|
<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"
|
|
|
|
>
|
2023-11-15 00:34:16 +01:00
|
|
|
<a
|
|
|
|
href="orders.html" th:href="@{'/orders/' + ${day.get(1)}}"
|
|
|
|
th:text="${day.get(0)}"
|
|
|
|
class="description"
|
|
|
|
>
|
|
|
|
</a>
|
2023-11-12 14:42:07 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="content">
|
2023-11-15 00:34:16 +01:00
|
|
|
<p th:each="item, stat : ${day}" th:if="${stat.index} > 1" th:text="${item}"></p>
|
2023-11-12 14:42:07 +01:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2023-11-15 17:27:04 +01:00
|
|
|
</div>
|
2023-11-12 14:42:07 +01:00
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
<!--th:href="@{/orders/{id}(id=${day.id})}"-->
|