udemy-go-web-1/templates/reservation-summary.page.tmpl

40 lines
1.1 KiB
Cheetah
Raw Normal View History

{{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}}