-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcar_rental_center.html
66 lines (65 loc) · 1.94 KB
/
car_rental_center.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Car Rental Center | Hertz-UTS</title>
<link href="https://fonts.googleapis.com/css?family=Raleway" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css" integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay" crossorigin="anonymous">
<link rel="stylesheet" href="css/car_rental_center.css">
<script src="js/vue.min.js"></script>
</head>
<body>
<header>
<div class="inner">
<div class="home">
<a class="logo" href="index.html"></a>
</div>
<h1>Car Rental Center</h1>
</div>
</header>
<div id="car_table">
<table>
<thead>
<tr>
<th>Picture</th>
<th>Vehicle</th>
<th>Price Per Day</th>
<th>Rental Days</th>
<th>Actions</th>
</tr>
</thead>
<tbody name="change_list" is="transition-group">
<tr class="single_car" v-for="car in car_list" v-bind:key="car.id">
<td class="pic">
<img v-bind:src="'images/'+car.model+'.jpg'">
</td>
<td>{{car.model}}</td>
<td class="price_per_day">{{car.price_per_day}}</td>
<td><input type="number" min="1" max="31" v-model.number="car.counts"></td>
<td class="action">
<a href="javascript:void(0);" class="delete" v-on:click="car.deleteshow = !car.deleteshow">Delete</a>
</td>
</tr>
</tbody>
</table>
<div id="no_cars" v-show="car_list.length == 0">
<p><i class="far fa-surprise"></i>You have no reservation</p>
</div>
<div id="checkout">
<div id="price">
<h4>Total price:</h4>
<span>A$</span><strong>{{total}}</strong>
</div>
<a href="javascript:void(0)" id="purchase" v-on:click="checkOut()">Check Out</a>
<a href="javascript:void(0)" id="clearCart" v-on:click="clearCart()">ClearCart</a>
</div>
</div>
<!-- warning box -->
<div id="warning">
<p>
<strong></strong>
</p>
</div>
<script src="js/car_rental_center.js"></script>
</body>
</html>