Add API Framework Revel Source Files
[iec.git] / src / foundation / api / revel / testdata / app / views / hotels / show.html
diff --git a/src/foundation/api/revel/testdata/app/views/hotels/show.html b/src/foundation/api/revel/testdata/app/views/hotels/show.html
new file mode 100644 (file)
index 0000000..6d10898
--- /dev/null
@@ -0,0 +1,37 @@
+{{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" .}}