Cleaning up the reservation summary page and improbing validation

This commit is contained in:
2024-07-10 22:54:28 +02:00
parent 95cddfc950
commit e0a29d21c3
3 changed files with 32 additions and 38 deletions

View File

@ -33,6 +33,7 @@
const elem = document.getElementById('reservation-dates');
const rangepicker = new DateRangePicker(elem, {
"format": "yyyy-mm-dd",
"minDate": new Date(),
});
</script>
{{end}}

View File

@ -15,13 +15,17 @@
<td>Name: </td>
<td>{{$res.LastName}} {{$res.FirstName}}</td>
</tr>
<tr>
<td>Room: </td>
<td>{{$res.Room.RoomName}}</td>
</tr>
<tr>
<td>Arrival: </td>
<td></td>
<td>{{index .StringMap "start_date"}}</td>
</tr>
<tr>
<td>Departure: </td>
<td></td>
<td>{{index .StringMap "end_date"}}</td>
</tr>
<tr>
<td>Email: </td>