-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path100-hbnb.html
85 lines (85 loc) · 2.71 KB
/
100-hbnb.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!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/100-hbnb.js?{{ cache_id }}"></script>
<title>HBnB</title>
</head>
<body>
<header>
<div class="logo"></div>
<div class="api_status" id="api_status"></div>
</header>
<div class="container">
<section class="filters">
<div class="locations">
<h3>States</h3>
<h4> </h4>
<div class="popover">
<ul>
{% for state in states %}
<li>
<h2>
<input type="checkbox" data-id="{{ state.id }}" data-name="{{ state.name }}">
{{ state[0].name }}:
</h2>
<ul>
{% for city in state[1] %}
<li>
<input type="checkbox" data-id="{{ city.id }}" data-name="{{ city.name }}">
{{ city.name }}
</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
</div>
</div>
<div class="amenities">
<h3>Amenities</h3>
<h4> </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="description">
{{ place.description | safe }}
</div>
</article>
{% endfor %}
</section>
</div>
<footer>
<p>Holberton School</p>
</footer>
</body>
</html>