reservation calendar 2

This commit is contained in:
2024-07-26 13:40:56 +02:00
parent a7cf9fe4f0
commit b97c6cba5c
6 changed files with 110 additions and 2 deletions

View File

@ -5,9 +5,12 @@ Reservations Calendar
{{end}}
{{define "content"}}
{{$now := index .Data "now"}}
{{$rooms := index .Data "rooms"}}
{{$dim := index .IntMap "days_in_month"}}
<div class="col-md-12">
<div class="text-center">
<h3>{{index .StringMap "this_month"}} {{index .StringMap "this_month_year"}}</h3>
<h3>{{formatDate $now "January"}} {{formatDate $now "2006"}}</h3>
</div>
<div class="float-start">
@ -21,5 +24,27 @@ Reservations Calendar
</div>
<div class="clearfix"></div>
{{range $rooms}}
{{$roomId := .ID}}
<h4 class="mt-4">{{.RoomName}}</h4>
<div class="table-responsive">
<table class="table table-bordered table-sm">
<tr class="table-dark">
{{range $index := iterate $dim}}
<td class="text-center">
{{add $index 1}}
</td>
{{end}}
</tr>
<tr class="table-light">
{{range $index := iterate $dim}}
<td class="text-center">
<input type="checkbox" name="checked" value="">
</td>
{{end}}
</tr>
</table>
</div>
{{end}}
</div>
{{end}}