2022-10-20 23:30:14 +02:00

50 lines
2.0 KiB
HTML

<!DOCTYPE html>
<html th:replace="~{template :: layout(~{::title}, ~{::libs}, ~{::header}, ~{::content})}" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head>
<title>Camp Organizer Business</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<libs></libs>
</head>
<body>
<header>
<a th:href="@{/}" class="btn btn-secondary btn-icon-silent" title="zur Hauptseite"><i class="fas fa-home"></i></a>
<a th:href="@{/business}" class="btn btn-secondary btn-icon-silent" title="aktualisieren"><i class="fas fa-sync"></i></a>
<a th:href="@{/business/bookings}" class="btn btn-secondary btn-icon-silent" title="zur Buchungsübersicht" sec:authorize="hasRole('business_booking')"><i class="fas fa-users"></i></a>
<a th:href="@{/business/privileges}" class="btn btn-secondary btn-icon-silent" title="Nutzerverwaltung" sec:authorize="hasRole('admin')"><i class="fas fa-user-lock"></i></a>
</header>
<content>
<div class="mainpage">
<div class="card" style="width: 640px">
<div class="card-header">Finanzübersicht über alle Freizeiten</div>
<div class="card-body">
<table id="camps" class="table table-striped">
<thead>
<tr>
<th scope="col">Jahr</th>
<th scope="col">Freizeit</th>
<th scope="col">Kontostand</th>
</tr>
</thead>
<tbody>
<th:block th:each="b : ${campBudgets}" sec:authorize="hasRole('business')">
<tr>
<td th:text="${#numbers.formatDecimal(b.campYear, 1, 0)}"></td>
<td><a th:href="@{/business/camp/{id}(id=${b.campId})}" th:text="${b.campName}" class="tablelink" title="Freizeitübersicht laden"></a></td>
<td th:text="${#numbers.formatDecimal(b.budget, 1, 2) + ' €'}"></td>
</tr>
</th:block>
</tbody>
</table>
<script>
$(document).ready(function() {
$("#camps").DataTable({
language: locale_de
});
});
</script>
</div>
</div>
</div>
</content>
</body>
</html>