-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
69 lines (68 loc) · 2.3 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CRUD - Layanan Perbaikan Kendaraan</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Layanan Perbaikan Kendaraan</h1>
<form autocomplete="off" onsubmit="onFormSubmit()">
<div>
Plat Kendaraan Polisi <br>
<input type="text" name="platKendaraan" id="platKendaraan" required>
</div>
<div>
Nama Pemilik <br>
<input type="text" name="namaPemilik" id="namaPemilik" required>
</div>
<div>
Merk <br>
<input type="text" name="merek" id="merek" required>
</div>
<div>
Jenis Mobil <br>
<select name="jenisMobil" id="jenisMobil" onchange="calculateBiaya()" required>
<option disabled selected value></option>
<option value="1000000">Truk</option>
<option value="2000000">Minibus</option>
<option value="3000000">Bus</option>
</select>
</div>
<div>
Kerusakan <br>
<select name="kerusakan" id="kerusakan" onchange="calculateBiaya()" required>
<option disabled selected value></option>
<option value="500000">Kerusakan Ringan</option>
<option value="1000000">Kerusakan Sedang</option>
<option value="2000000">Kerusakan Berat</option>
</select>
</div>
<div>
Biaya <br>
<input type="text" name="biaya" id="biaya" required>
</div>
<div class="form_action--button" align="center">
<input type="submit" value="Submit">
<input type="reset" value="Reset">
</div>
</form>
<table class="list" id="storeList">
<thead>
<tr>
<th>Plat Kendaraan</th>
<th>Nama Pemilik</th>
<th>Merek</th>
<th>Jenis Mobil</th>
<th>Kerusakan</th>
<th>Biaya</th>
<th>Action</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<script type="text/javascript" src="script.js"></script>
</body>
</html>