add times to vehicle reservation

This commit is contained in:
Arnaud Delcasse
2025-12-02 08:30:56 +01:00
parent bf15e114f3
commit 702cbf67f1
5 changed files with 67 additions and 271 deletions

View File

@@ -78,11 +78,14 @@
</div>
{{end}}
</td>
<td class="whitespace-nowrap py-4 pl-4 pr-3 text-sm sm:pl-6">
<td class="py-4 pl-4 pr-3 text-sm sm:pl-6">
{{if .Data.administrator_unavailability}}
<div class="text-gray-900" >Retiré du {{(timeFrom .Unavailablefrom).Format "02/01/2006"}} au {{(timeFrom .Unavailableto).Format "02/01/2006"}}</div>
{{else}}
<div class="text-gray-900" >Du {{(timeFrom .Startdate).Format "02/01/2006"}} au {{(timeFrom .Enddate).Format "02/01/2006"}}</div>
<div class="text-gray-900" >
<div>Du {{(timeFrom .Startdate).Format "02/01/2006 à 15:04"}}</div>
<div>au {{(timeFrom .Enddate).Format "02/01/2006 à 15:04"}}</div>
</div>
{{end}}
</td>
<td class="whitespace-nowrap py-4 pl-4 pr-3 text-sm sm:pl-6">