-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshow.html.erb
More file actions
57 lines (53 loc) · 2.16 KB
/
show.html.erb
File metadata and controls
57 lines (53 loc) · 2.16 KB
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
<!-- source/flats/show.html.erb -->
<!-- Access data.flats with owner's name as key -->
<% flat = data.flats[owner] %>
<div class="banner" style="background-image: linear-gradient(-225deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%), url('https://kitt.lewagon.com/placeholder/cities/<%= flat.city_slug %>'); height: 50vh; background-position: center;">
</div>
<div class="header-flat">
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-1">
<div class="header-flat-details">
<div class="header-flat-owner text-center">
<%= image_tag "https://kitt.lewagon.com/placeholder/users/#{owner}", class: "avatar-medium"%>
<p><%= owner %></p>
</div>
<div class="header-flat-name">
<h1><%= flat.description %></h1>
<p><%= flat.city_name %></p>
<p class="rating">
<i class="fa fa-star" style="color: #ffb400"></i>
<i class="fa fa-star" style="color: #ffb400"></i>
<i class="fa fa-star" style="color: #ffb400"></i>
<i class="fa fa-star" style="color: #ffb400"></i>
<i class="fa fa-star" style="color: #cacccd"></i>
</p>
</div>
</div>
</div>
<div class="col-xs-12 col-sm-4">
<form action="#">
<h4>Book this flat</h4>
<div class="form-group">
<div class="row">
<div class="col-xs-6">
<input type="text" class="form-control" placeholder="checkin" id="checkin">
</div>
<div class="col-xs-6">
<input type="text" class="form-control" placeholder="checkout">
</div>
</div>
</div>
<div class="form-group">
<select name="" id="guests" class="form-control">
<option value="1">1 guest</option>
<option value="2">2 guests</option>
<option value="3">3 guests</option>
</select>
</div>
<input type="submit" class="btn btn-danger" value="Book it" style="width: 100%">
</form>
</div>
</div>
</div>
</div>