Skip to content

Commit

Permalink
Updated Css
Browse files Browse the repository at this point in the history
  • Loading branch information
amh4 committed Jan 20, 2023
1 parent ef04fd0 commit 4eb6317
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 32 deletions.
5 changes: 5 additions & 0 deletions public/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,8 @@ h2 {
padding: 20px;
}

.add-another-space{
border: 2px;
border-radius: 20px;
border-color: white;
}
15 changes: 10 additions & 5 deletions views/add_a_space.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,32 @@
</div>

<h1>Add your space</h1>
<br>
<br>
<form action="/add-a-space" method="POST">
<label for="title">Property name:</label>
<input type="text" name="title" />

<label for="address">Address:</label>
<input type="text" name="address" />

<label for="description">Property description:</label>
<input type="text" name="description" />

<label for="daily_rate">Daily rate:</label>
<input type="number" name="daily_rate" />

<br>
<br>
<br>
<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" />
<br>
<br>
<br>
<input type="submit" value="Add Your Space" />

</form>

Expand Down
47 changes: 21 additions & 26 deletions views/add_availability.erb
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>
2 changes: 1 addition & 1 deletion views/homepage.erb
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<html>
<head><link rel="stylesheet" type="text/css" href="<%= url("/style.css")%>"></head>
<body>

<ul>
<% if @a == true %>
<li><a href="/log-out">Click to logout</a></li>
<li><a href="/bookings">Click to view bookings</a></li>
<li><a href="/account">Manage Account</a></li>
<li><a href="/add-a-space">Add A Space</a></li>
<% else %>
<li><a href="/sign-up">Click to sign up</a></li>
<li><a href="/log-in">Click to login</a></li>
Expand Down

0 comments on commit 4eb6317

Please sign in to comment.