-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkel5.html
More file actions
131 lines (123 loc) · 5.35 KB
/
kel5.html
File metadata and controls
131 lines (123 loc) · 5.35 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
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous" />
<link rel="stylesheet" href="./styleKel5.css" />
<title>Add New Car</title>
</head>
<body>
<section id="page-5">
<div class="container pt-4">
<div class="row">
<div class="col-12">
<div class="sub-tree d-flex mt-3 mb-3">
<a href="#">
<p class="fw-bold">Cars</p>
</a>
<i class="fa fa-solid fa-chevron-right mx-2"></i>
<a href="#">
<p class="fw-bold">List Car</p>
</a>
<i class="fa fa-solid fa-chevron-right mx-2"></i>
<a href="#">
<p>Add New Car</p>
</a>
</div>
<h2>Add New Car</h2>
<div class="form-body">
<form>
<div class="row">
<div class="col-lg-3">
<label for="inputName" class="col-form-label">Nama</label>
<label for="wajib" style="color: red">*</label>
</div>
<div class="col-lg-9">
<input type="text" id="inputNama6" class="form-control" placeholder="Nama" />
<small id="namaHelp" class="form-text text-muted"></small>
</div>
</div>
<div class="row">
<div class="col-lg-3">
<label for="inputPassword6" class="col-form-label">Harga</label>
<label for="wajib" style="color: red">*</label>
</div>
<div class="col-lg-9">
<input type="text" id="inputHarga6" class="form-control" placeholder="Harga" />
<small id="hargaHelp" class="form-text text-muted"></small>
</div>
</div>
<div class="row">
<div class="col-lg-3">
<label for="inputFoto6" class="col-form-label">Foto</label>
<label for="wajib" style="color: red">*</label>
</div>
<div class="col-lg-9">
<div class="input-group">
<input class="form-control" type="file" id="formFile" style="display: none" onchange="getNameFile(this.value)" />
<label for="formFile" id="file-input" class="form-control icon text-secondary">No file selected</label>
<span class="input-group-text"><img src="fi_upload.png" /></span>
</div>
<small id="fileHelp" class="form-text text-muted" style="margin-left: 1px">File size max. 2 MB</small>
</div>
</div>
<div class="row">
<div class="col-lg-3">
<label for="inputStartRent6" class="col-form-label">Start Rent</label>
</div>
<div class="col-lg-9">
<span> - </span>
<span class="error-notif"></span>
</div>
</div>
<div class="row">
<div class="col-lg-3">
<label for="inputFinishRent6" class="col-form-label">Finish Rent</label>
</div>
<div class="col-lg-9">
<span> - </span>
<span class="error-notif"></span>
</div>
</div>
<div class="row">
<div class="col-lg-3">
<label for="inputCreatedRent6" class="col-form-label">Created Rent</label>
</div>
<div class="col-lg-9">
<span> - </span>
<span class="error-notif"></span>
</div>
</div>
<div class="row">
<div class="col-lg-3">
<label for="inputUpdatedRent6" class="col-form-label">Updated Rent</label>
</div>
<div class="col-lg-9">
<span> - </span>
<span class="error-notif"></span>
</div>
</div>
</form>
</div>
</div>
</div>
<footer class="footer">
<button type="button" class="btn-custom">Cancel</button>
<button type="button" class="btn-custom-save">Save</button>
</footer>
</div>
</section>
<script src="https://kit.fontawesome.com/7441451cf7.js" crossorigin="anonymous"></script>
<script>
function getNameFile(nameFile) {
const date = new Date();
let result = `IMG/${date.getMonth()}/${date.getFullYear()}/001`;
document.getElementById('file-input').innerHTML = result;
}
</script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
</body>
</html>