-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
37 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,3 +48,8 @@ h2 { | |
padding: 20px; | ||
} | ||
|
||
.add-another-space{ | ||
border: 2px; | ||
border-radius: 20px; | ||
border-color: white; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,32 @@ | ||
<html> | ||
|
||
|
||
<head>Add your space</head> | ||
<head><link rel="stylesheet" type="text/css" href="<%= url("/style.css")%>"></head> | ||
<body> | ||
|
||
<div class="navigation"> | ||
<ul> | ||
<li><a href="/">Homepage</a></li> | ||
<li><a href="/log-out">Logout</a></li> | ||
<li><a href="/your-bookings">View bookings</a></li> | ||
</ul> | ||
</div> | ||
|
||
<h1>Add your space</h1> | ||
Property title: <%= @p.title %> | ||
Property description: <%= @p.description %> | ||
Property address: <%= @p.address %> | ||
<ul> | ||
<li><a href="/">Homepage</a></li> | ||
<li><a href="/log-out">Logout</a></li> | ||
<li><a href="/your-bookings">View bookings</a></li> | ||
</ul> | ||
</div> | ||
|
||
<h1>Add More Availability</h1> | ||
|
||
Property title: <%= @p.title %> | ||
Property description: <%= @p.description %> | ||
Property address: <%= @p.address %> | ||
|
||
<form action="/add-availability/<%= @p.id %>" method="POST"> | ||
<form action="/add-availability/<%= @p.id %>" method="POST"> | ||
|
||
<label for="first_available">Available from:</label> | ||
<input type="date" name="first_available" /> | ||
|
||
<label for="last_available">Available to:</label> | ||
<input type="date" name="last_available" /> | ||
|
||
<input type="submit" value="Submit the form" /> | ||
<li><a href="/add-a-space">Add another space</a></li> | ||
|
||
</form> | ||
<label for="first_available">Available from:</label> | ||
<input type="date" name="first_available" /> | ||
|
||
<label for="last_available">Available to:</label> | ||
<input type="date" name="last_available" /> | ||
|
||
<input type="submit" value="Submit the form" /> | ||
<div class="add-another-space"> | ||
<br><li ><a href="/add-a-space">Add another space</a></li> | ||
</div> | ||
</form> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters