mirror of
https://github.com/st-tu-dresden-praktikum/swt23w23
synced 2024-07-03 08:09:40 +02:00
86 lines
1.9 KiB
HTML
86 lines
1.9 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=calender_of_orders)}">
|
||
|
<head>
|
||
|
<style>
|
||
|
table {
|
||
|
border-collapse: collapse;
|
||
|
background: white;
|
||
|
color: black;
|
||
|
}
|
||
|
|
||
|
th,
|
||
|
td {
|
||
|
font-weight: bold;
|
||
|
}
|
||
|
</style>
|
||
|
</head>
|
||
|
<body>
|
||
|
<section layout:fragment="content">
|
||
|
<!-- class="ui celled table"-->
|
||
|
<table bgcolor="lightgrey" align="center"
|
||
|
cellspacing="21" cellpadding="21">
|
||
|
|
||
|
<!-- 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-->
|
||
|
<th th:each="dayName : ${dayNames}" style="color: white; background: purple;"
|
||
|
>
|
||
|
<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"
|
||
|
th:text="${day.get(0)}"
|
||
|
>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="content">
|
||
|
<a
|
||
|
class="description"
|
||
|
th:text="${day.get(1)}"
|
||
|
>
|
||
|
</a>
|
||
|
</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</section>
|
||
|
</body>
|
||
|
</html>
|
||
|
<!--th:href="@{/orders/{id}(id=${day.id})}"-->
|