{{template "header.html" .}}

<h1>View hotel</h1>

{{with .hotel}}
<form action="{{url "Hotels.Book" .HotelId}}">

  <p>
    <strong>Name:</strong> {{.Name}}
  </p>
  <p>
    <strong>Address:</strong> {{.Address}}
  </p>
  <p>
    <strong>City:</strong> {{.City}}
  </p>
  <p>
    <strong>State:</strong> {{.State}}
  </p>
  <p>
    <strong>Zip:</strong> {{.Zip}}
  </p>
  <p>
    <strong>Country:</strong> {{.Country}}
  </p>
  <p>
    <strong>Nightly rate:</strong> {{.Price}}
  </p>

  <p class="buttons">
    <input type="submit" value="Book Hotel">
    <a href="{{url "Hotels.Index"}}">Back to search</a>
  </p>
</form>
{{end}}

{{template "footer.html" .}}
