-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
forms-validation.html
421 lines (368 loc) · 14.4 KB
/
forms-validation.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
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Forms › Validation — Atrana</title>
<!-- Bootstrap CSS-->
<link rel="stylesheet" href="assets/modules/bootstrap-5.1.3/css/bootstrap.css">
<!-- Style CSS -->
<link rel="stylesheet" href="assets/css/style.css">
<!-- FontAwesome CSS-->
<link rel="stylesheet" href="assets/modules/fontawesome6.1.1/css/all.css">
<!-- Boxicons CSS-->
<link rel="stylesheet" href="assets/modules/boxicons/css/boxicons.min.css">
</head>
<body>
<!--Topbar -->
<div class="topbar transition">
<div class="bars">
<button type="button" class="btn transition" id="sidebar-toggle">
<i class="fa fa-bars"></i>
</button>
</div>
<div class="menu">
<ul>
<li class="nav-item dropdown dropdown-list-toggle">
<a class="nav-link" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
<i class="fa fa-bell size-icon-1"></i><span class="badge bg-danger notif">4</span>
</a>
<div class="dropdown-menu dropdown-list">
<div class="dropdown-header">Notifications</div>
<div class="dropdown-list-content dropdown-list-icons">
<div class="custome-list-notif">
<a href="#" class="dropdown-item dropdown-item-unread">
<div class="dropdown-item-icon bg-primary text-white">
<i class="fas fa-code"></i>
</div>
<div class="dropdown-item-desc">
The Atrana template has the latest update!
<div class="time text-primary">3 Min Ago</div>
</div>
</a>
<a href="#" class="dropdown-item">
<div class="dropdown-item-icon bg-info text-white">
<i class="far fa-user"></i>
</div>
<div class="dropdown-item-desc">
Sri asks you for friendship!
<div class="time">12 Hours Ago</div>
</div>
</a>
<a href="#" class="dropdown-item">
<div class="dropdown-item-icon bg-danger text-white">
<i class="fas fa-check"></i>
</div>
<div class="dropdown-item-desc">
Storage has been cleared, now you can get back to work!
<div class="time">20 Hours Ago</div>
</div>
</a>
<a href="#" class="dropdown-item">
<div class="dropdown-item-icon bg-info text-white">
<i class="fas fa-bell"></i>
</div>
<div class="dropdown-item-desc">
Welcome to Atrana Template, I hope you enjoy using this template!
<div class="time">Yesterday</div>
</div>
</a>
</div>
</div>
<div class="dropdown-footer text-center">
<a href="#">View All</a>
</div>
</li>
<li class="nav-item dropdown">
<a class="nav-link" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
<img src="assets/images/avatar/avatar-1.png" alt="">
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="my-profile.html"><i class="fa fa-user size-icon-1"></i> <span>My Profile</span></a>
<a class="dropdown-item" href="settings.html"><i class="fa fa-cog size-icon-1"></i> <span>Settings</span></a>
<hr class="dropdown-divider">
<a class="dropdown-item" href="#"><i class="fa fa-sign-out-alt size-icon-1"></i> <span>My Profile</span></a>
</ul>
</li>
</ul>
</div>
</div>
<!--Sidebar-->
<div class="sidebar transition overlay-scrollbars animate__animated animate__slideInLeft">
<div class="sidebar-content">
<div id="sidebar">
<!-- Logo -->
<div class="logo">
<h2 class="mb-0"><img src="assets/images/logo.png"> Atrana</h2>
</div>
<ul class="side-menu">
<li>
<a href="index.html" class="active">
<i class='bx bxs-dashboard icon' ></i> Dashboard
</a>
</li>
<!-- Divider-->
<li class="divider" data-text="STARTER">STARTER</li>
<li>
<a href="#">
<i class='bx bx-columns icon' ></i>
Layout
<i class='bx bx-chevron-right icon-right' ></i>
</a>
<ul class="side-dropdown">
<li><a href="layout-default.html">Default Layout</a></li>
<li><a href="layout-top-navigation.html">Top Navigation</a></li>
</ul>
</li>
<li>
<a href="blank-pages.html">
<i class='bx bxs-meh-blank icon'></i>
Blank Page
</a>
</li>
<li>
<a href="#">
<i class='fa fa-th icon' ></i>
Bootstrap
<i class='bx bx-chevron-right icon-right' ></i>
</a>
<ul class="side-dropdown">
<li><a href="bootstrap-alert.html">Alert</a></li>
<li><a href="bootstrap-badge.html">Badge</a></li>
<li><a href="bootstrap-breadcrumb.html">Breadcrumb</a></li>
<li><a href="bootstrap-buttons.html">Buttons</a></li>
<li><a href="bootstrap-card.html">Card</a></li>
<li><a href="bootstrap-carousel.html">Carousel</a></li>
<li><a href="bootstrap-dropdown.html">Dropdown</a></li>
<li><a href="bootstrap-list-group.html">List Group</a></li>
<li><a href="bootstrap-modal.html">Modal</a></li>
<li><a href="bootstrap-nav.html">Navs</a></li>
<li><a href="bootstrap-pagination.html">Pagination</a></li>
<li><a href="bootstrap-progress.html">Progress</a></li>
<li><a href="bootstrap-spinner.html">Spinner</a></li>
</ul>
</li>
<!-- Divider-->
<li class="divider" data-text="Atrana">Atrana</li>
<li>
<a href="#">
<i class='bx bx-columns icon' ></i>
Components
<i class='bx bx-chevron-right icon-right' ></i>
</a>
<ul class="side-dropdown">
<li><a href="component-avatar.html">Avatar</a></li>
<li><a href="component-toastify.html">Toastify</a></li>
<li><a href="component-sweet-alert.html">Sweet Alert</a></li>
<li><a href="component-hero.html">Hero</a></li>
</ul>
</li>
<li>
<a href="#">
<i class='bx bxs-notepad icon' ></i>
Forms
<i class='bx bx-chevron-right icon-right' ></i>
</a>
<ul class="side-dropdown">
<li><a href="forms-editor.html">Editor</a></li>
<li><a href="forms-validation.html">Validation</a></li>
<li><a href="forms-checkbox.html">Checkbox</a></li>
<li><a href="forms-radio.html">Radio</a></li>
</ul>
</li>
<li>
<a href="#">
<i class='bx bxs-widget icon' ></i>
Widgets
<i class='bx bx-chevron-right icon-right' ></i>
</a>
<ul class="side-dropdown">
<li><a href="widgets-chatboxs.html">ChatBox</a></li>
<li><a href="widgets-email.html">Emails</a></li>
<li><a href="widgets-pricing.html">Pricing</a></li>
</ul>
</li>
<li>
<a href="#">
<i class='bx bxs-bar-chart-alt-2 icon' ></i>
Charts
<i class='bx bx-chevron-right icon-right' ></i>
</a>
<ul class="side-dropdown">
<li><a href="chart-chartjs.html">ChartJS</a></li>
<li><a href="chart-apexcharts.html">Apexcharts</a></li>
</ul>
</li>
<li>
<a href="#">
<i class='bx bxs-cloud-rain icon' ></i>
Icons
<i class='bx bx-chevron-right icon-right' ></i>
</a>
<ul class="side-dropdown">
<li><a href="icons-fontawesome.html">Fontawesome</a></li>
<li><a href="icons-boostrap.html">Bootstrap Icons</a></li>
</ul>
</li>
<!-- Divider-->
<li class="divider" data-text="Pages">Pages</li>
<li>
<a href="#">
<i class='bx bxs-user icon' ></i>
Auth
<i class='bx bx-chevron-right icon-right' ></i>
</a>
<ul class="side-dropdown">
<li><a href="auth-login.html">Login</a></li>
<li><a href="auth-register.html">Register</a></li>
<li><a href="auth-forgot-password.html">Forgot Password</a></li>
<li><a href="auth-reset-password.html">Reset Password</a></li>
</ul>
</li>
<li>
<a href="#">
<i class='bx bxs-error icon' ></i>
Errors
<i class='bx bx-chevron-right icon-right' ></i>
</a>
<ul class="side-dropdown">
<li><a href="errors-403.html">403</a></li>
<li><a href="errors-404.html">404</a></li>
<li><a href="errors-500.html">500</a></li>
<li><a href="errors-503.html">503</a></li>
</ul>
</li>
<li>
<a href="credits.html"><i class='fa fa-pencil-ruler icon' ></i>
Credits
</a>
</li>
</ul>
<div class="ads">
<div class="wrapper">
<div class="help-icon"><i class="fa fa-circle-question fa-3x"></i></div>
<p>Need Help with <strong>Atrana</strong>?</p>
<a href="docs/" class="btn-upgrade">Documentation</a>
</div>
</div>
</div>
</div>
</div>
</div><!-- End Sidebar-->
<div class="sidebar-overlay"></div>
<!--Content Start-->
<div class="content-start transition ">
<div class="container-fluid dashboard">
<div class="content-header">
<h1>Form Validation</h1>
<p>Form validation using default from Bootstrap 5<a href="https://getbootstrap.com/docs/5.1/forms/validation/"> Read more</a></p>
</div>
<div class="row">
<div class="col-12 col-md-6 col-lg-6">
<div class="card">
<form>
<div class="card-header">
<h4>Default Validation</h4>
</div>
<div class="card-body">
<div class="mb-3">
<label>Your Name</label>
<input type="text" class="form-control" required="">
</div>
<div class="mb-3">
<label>Email</label>
<input type="email" class="form-control" required="">
</div>
<div class="mb-3">
<label>Subject</label>
<input type="email" class="form-control">
</div>
<div class="form-group mb-0">
<label>Message</label>
<textarea class="form-control" required=""></textarea>
</div>
</div>
<div class="card-footer text-right">
<button class="btn btn-primary">Submit</button>
</div>
</form>
</div>
</div>
<div class="col-12 col-md-6 col-lg-6">
<div class="card">
<form>
<div class="card-header">
<h4>Server-side Validation</h4>
</div>
<div class="card-body">
<div class="mb-3">
<label>Your Name</label>
<input type="text" class="form-control is-valid" value="Andreews" required="">
<div class="valid-feedback">
Good job!
</div>
</div>
<div class="mb-3">
<label>Email</label>
<input type="email" class="form-control is-invalid" required="" value="andre@atrana">
<div class="invalid-feedback">
Oh no! Email is invalid.
</div>
</div>
<div class="mb-3">
<label>Subject</label>
<input type="email" class="form-control">
</div>
<div class="form-group mb-0">
<label>Message</label>
<textarea class="form-control is-invalid" required="">Hello!</textarea>
<div class="invalid-feedback">
Oh no! You entered an inappropriate word.
</div>
</div>
</div>
<div class="card-footer text-right">
<button class="btn btn-primary">Submit</button>
</div>
</form>
</div>
</div>
</div>
</div><!-- End Container-->
</div><!-- End Content-->
<!-- Footer -->
<footer>
<div class="footer">
<div class="float-start">
<p>2022 © Atrana</p>
</div>
<div class="float-end">
<p>Crafted with
<span class="text-danger">
<i class="fa fa-heart"></i> by
<a href="https://www.facebook.com/andreew.co.id/" class="author-footer">Andre Tri Ramadana</a>
</span>
</p>
</div>
</div>
</footer>
<!-- Preloader -->
<div class="loader">
<div class="spinner-border text-light" role="status">
<span class="sr-only">Loading...</span>
</div>
</div>
<!-- Loader -->
<div class="loader-overlay"></div>
<!-- General JS Scripts -->
<script src="assets/js/atrana.js"></script>
<!-- JS Libraies -->
<script src="assets/modules/jquery/jquery.min.js"></script>
<script src="assets/modules/bootstrap-5.1.3/js/bootstrap.bundle.min.js"></script>
<script src="assets/modules/popper/popper.min.js"></script>
<!-- Template JS File -->
<script src="assets/js/script.js"></script>
<script src="assets/js/custom.js"></script>
</body>
</html>