Skip to content
This repository was archived by the owner on Mar 13, 2021. It is now read-only.

Commit

Permalink
booking content include listing info, close pelensky#42
Browse files Browse the repository at this point in the history
  • Loading branch information
russellyeo committed Dec 15, 2016
1 parent 90c916c commit 1b3d544
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions app/views/booking.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
<h1> Your booking </h1>

Book a date for the property <%= @listing.id %>
<%= @listing.name %>
<form method="post" action="/booking/<%= @listing.id %>">
<input type="date" name="date">
<input type="submit" value="submit">
</form>
<ul>
<li> Name: <%= @listing.name %> </li>
<li> Description: <%= @listing.description %> </li>
<li> Price: <%= @listing.price %> </li>
<li> Choose a date:
<form method="post" action="/booking/<%= @listing.id %>">
<input type="date" name="date">
<input type="submit" value="submit">
</form>
</li>
</ul>
<br>

0 comments on commit 1b3d544

Please sign in to comment.