Skip to content

Commit

Permalink
Add template for task 2
Browse files Browse the repository at this point in the history
  • Loading branch information
muindetuva committed Sep 26, 2021
1 parent c97b716 commit 33cdff8
Showing 1 changed file with 80 additions and 0 deletions.
80 changes: 80 additions & 0 deletions web_dynamic/templates/1-hbnb.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="../static/styles/4-common.css?{{ cache_id }}">
<link rel="stylesheet" type="text/css" href="../static/styles/3-header.css?{{ cache_id }}">
<link rel="stylesheet" type="text/css" href="../static/styles/3-footer.css?{{ cache_id }}">
<link rel="stylesheet" type="text/css" href="../static/styles/6-filters.css?{{ cache_id }}">
<link type="text/css" rel="stylesheet" href="../static/styles/8-places.css?{{ cache_id }}">
<link rel="icon" href="../static/images/icon.png?{{ cache_id }}" />
<!-- JQuery -->
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src ="../static/scripts/1-hbnb.js?{{ cache_id }}"></script>
<title>HBnB</title>
</head>
<body>
<header>
<div class="logo"></div>
</header>
<div class="container">
<section class="filters">
<div class="locations">
<h3>States</h3>
<h4>&nbsp;</h4>
<div class="popover">
<ul>
{% for state in states %}
<li>
<h2>{{ state[0].name }}:</h2>
<ul>
{% for city in state[1] %}
<li>{{ city.name }}</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
</div>
</div>
<div class="amenities">
<h3>Amenities</h3>
<h4>&nbsp;</h4>
<div class="popover">
<ul>
{% for amenity in amenities %}
<li><input type="checkbox" data-id="{{ amenity.id }}" data-name="{{ amenity.name }}">{{ amenity.name }}</li>
{% endfor %}
</ul>
</div>
</div>
<button type="button">Search</button>
</section>
<div class="placesh1"><h1>Places</h1></div>
<section class="places">
<!-- <h1>Places</h1> -->
{% for place in places %}
<article>
<div class="title_box">
<h2>{{ place.name }}</h2>
<div class="price_by_night">${{ place.price_by_night }}</div>
</div>
<div class="information">
<div class="max_guest">{{ place.max_guest }} Guest{% if place.max_guest != 1 %}s{% endif %}</div>
<div class="number_rooms">{{ place.number_rooms }} Bedroom{% if place.number_rooms != 1 %}s{% endif %}</div>
<div class="number_bathrooms">{{ place.number_bathrooms }} Bathroom{% if place.number_bathrooms != 1 %}s{% endif %}</div>
</div>
<div class="user">
</div>
<div class="description">
{{ place.description | safe }}
</div>
</article>
{% endfor %}
</section>
</div>
<footer>
<p>Holberton School</p>
</footer>
</body>
</html>

0 comments on commit 33cdff8

Please sign in to comment.