Displaying a response to user after posting form data

This commit is contained in:
Muyao CHEN
2024-07-01 14:19:38 +02:00
parent 6826634a01
commit 3ad57c754f
4 changed files with 71 additions and 8 deletions

View File

@ -0,0 +1,39 @@
{{template "base" .}}
{{define "content"}}
{{$res := index .Data "reservation"}}
<div class="container">
<div class="row">
<div class="col mt-5">
<h1>Reservation Summary</h1>
<hr>
<table class="table table-striped">
<thead></thead>
<tbody>
<tr>
<td>Name: </td>
<td>{{$res.LastName}} {{$res.FirstName}}</td>
</tr>
<tr>
<td>Arrival: </td>
<td></td>
</tr>
<tr>
<td>Departure: </td>
<td></td>
</tr>
<tr>
<td>Email: </td>
<td>{{$res.Email}}</td>
</tr>
<tr>
<td>Phone: </td>
<td>{{$res.Phone}}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
{{end}}