Displaying a response to user after posting form data
This commit is contained in:
39
templates/reservation-summary.page.tmpl
Normal file
39
templates/reservation-summary.page.tmpl
Normal 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}}
|
Reference in New Issue
Block a user