-
Notifications
You must be signed in to change notification settings - Fork 82
/
forms.html
584 lines (581 loc) · 40.3 KB
/
forms.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
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
<!doctype html>
<!--
* Bootstrap Simple Admin Template
* Version: 2.1
* Author: Alexis Luna
* Website: https://github.com/alexis-luna/bootstrap-simple-admin-template
-->
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Forms | Bootstrap Simple Admin Template</title>
<link href="assets/vendor/fontawesome/css/fontawesome.min.css" rel="stylesheet">
<link href="assets/vendor/fontawesome/css/solid.min.css" rel="stylesheet">
<link href="assets/vendor/fontawesome/css/brands.min.css" rel="stylesheet">
<link href="assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/css/master.css" rel="stylesheet">
</head>
<body>
<div class="wrapper">
<!-- sidebar navigation component -->
<nav id="sidebar" class="active">
<div class="sidebar-header">
<img src="assets/img/bootstraper-logo.png" alt="bootraper logo" class="app-logo">
</div>
<ul class="list-unstyled components text-secondary">
<li>
<a href="dashboard.html"><i class="fas fa-home"></i>Dashboard</a>
</li>
<li>
<a href="forms.html"><i class="fas fa-file-alt"></i>Forms</a>
</li>
<li>
<a href="tables.html"><i class="fas fa-table"></i>Tables</a>
</li>
<li>
<a href="charts.html"><i class="fas fa-chart-bar"></i>Charts</a>
</li>
<li>
<a href="icons.html"><i class="fas fa-icons"></i>Icons</a>
</li>
<li>
<a href="#uielementsmenu" data-bs-toggle="collapse" aria-expanded="false" class="dropdown-toggle no-caret-down"><i class="fas fa-layer-group"></i>UI Elements</a>
<ul class="collapse list-unstyled" id="uielementsmenu">
<li>
<a href="ui-buttons.html"><i class="fas fa-angle-right"></i>Buttons</a>
</li>
<li>
<a href="ui-badges.html"><i class="fas fa-angle-right"></i>Badges</a>
</li>
<li>
<a href="ui-cards.html"><i class="fas fa-angle-right"></i>Cards</a>
</li>
<li>
<a href="ui-alerts.html"><i class="fas fa-angle-right"></i>Alerts</a>
</li>
<li>
<a href="ui-tabs.html"><i class="fas fa-angle-right"></i>Tabs</a>
</li>
<li>
<a href="ui-date-time-picker.html"><i class="fas fa-angle-right"></i>Date & Time Picker</a>
</li>
</ul>
</li>
<li>
<a href="#authmenu" data-bs-toggle="collapse" aria-expanded="false" class="dropdown-toggle no-caret-down"><i class="fas fa-user-shield"></i>Authentication</a>
<ul class="collapse list-unstyled" id="authmenu">
<li>
<a href="login.html"><i class="fas fa-lock"></i>Login</a>
</li>
<li>
<a href="signup.html"><i class="fas fa-user-plus"></i>Signup</a>
</li>
<li>
<a href="forgot-password.html"><i class="fas fa-user-lock"></i>Forgot password</a>
</li>
</ul>
</li>
<li>
<a href="#pagesmenu" data-bs-toggle="collapse" aria-expanded="false" class="dropdown-toggle no-caret-down"><i class="fas fa-copy"></i>Pages</a>
<ul class="collapse list-unstyled" id="pagesmenu">
<li>
<a href="blank.html"><i class="fas fa-file"></i>Blank page</a>
</li>
<li>
<a href="404.html"><i class="fas fa-info-circle"></i>404 Error page</a>
</li>
<li>
<a href="500.html"><i class="fas fa-info-circle"></i>500 Error page</a>
</li>
</ul>
</li>
<li>
<a href="users.html"><i class="fas fa-user-friends"></i>Users</a>
</li>
<li>
<a href="settings.html"><i class="fas fa-cog"></i>Settings</a>
</li>
</ul>
</nav>
<!-- end of sidebar component -->
<div id="body" class="active">
<!-- navbar navigation component -->
<nav class="navbar navbar-expand-lg navbar-white bg-white">
<button type="button" id="sidebarCollapse" class="btn btn-light">
<i class="fas fa-bars"></i><span></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="nav navbar-nav ms-auto">
<li class="nav-item dropdown">
<div class="nav-dropdown">
<a href="#" id="nav1" class="nav-item nav-link dropdown-toggle text-secondary" data-bs-toggle="dropdown" aria-expanded="false">
<i class="fas fa-link"></i> <span>Quick Links</span> <i style="font-size: .8em;" class="fas fa-caret-down"></i>
</a>
<div class="dropdown-menu dropdown-menu-end nav-link-menu" aria-labelledby="nav1">
<ul class="nav-list">
<li><a href="" class="dropdown-item"><i class="fas fa-list"></i> Access Logs</a></li>
<div class="dropdown-divider"></div>
<li><a href="" class="dropdown-item"><i class="fas fa-database"></i> Back ups</a></li>
<div class="dropdown-divider"></div>
<li><a href="" class="dropdown-item"><i class="fas fa-cloud-download-alt"></i> Updates</a></li>
<div class="dropdown-divider"></div>
<li><a href="" class="dropdown-item"><i class="fas fa-user-shield"></i> Roles</a></li>
</ul>
</div>
</div>
</li>
<li class="nav-item dropdown">
<div class="nav-dropdown">
<a href="#" id="nav2" class="nav-item nav-link dropdown-toggle text-secondary" data-bs-toggle="dropdown" aria-expanded="false">
<i class="fas fa-user"></i> <span>John Doe</span> <i style="font-size: .8em;" class="fas fa-caret-down"></i>
</a>
<div class="dropdown-menu dropdown-menu-end nav-link-menu">
<ul class="nav-list">
<li><a href="" class="dropdown-item"><i class="fas fa-address-card"></i> Profile</a></li>
<li><a href="" class="dropdown-item"><i class="fas fa-envelope"></i> Messages</a></li>
<li><a href="" class="dropdown-item"><i class="fas fa-cog"></i> Settings</a></li>
<div class="dropdown-divider"></div>
<li><a href="" class="dropdown-item"><i class="fas fa-sign-out-alt"></i> Logout</a></li>
</ul>
</div>
</div>
</li>
</ul>
</div>
</nav>
<!-- end of navbar navigation -->
<div class="content">
<div class="container">
<div class="page-title">
<h3>Forms</h3>
</div>
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-header">Basic Form</div>
<div class="card-body">
<h5 class="card-title">Lorem ipsum dolor sit amet consectetur.</h5>
<form accept-charset="utf-8">
<div class="mb-3">
<label for="email" class="form-label">Email</label>
<input type="email" name="email" placeholder="Email Address" class="form-control" required>
</div>
<div class="mb-3">
<label for="password" class="form-label">Password</label>
<input type="password" name="password" placeholder="Password" class="form-control" required>
</div>
<div class="mb-3">
<input type="submit" class="btn btn-primary">
</div>
</form>
</div>
</div>
</div>
<div class="col-lg-12">
<div class="card">
<div class="card-header">Horizontal Form</div>
<div class="card-body">
<h5 class="card-title">Lorem ipsum dolor sit amet consectetur.</h5>
<form accept-charset="utf-8">
<div class="mb-3 row">
<label class="col-sm-2 form-label" for="email">Email</label>
<div class="col-sm-10">
<input type="email" name="email" placeholder="Email Address" class="form-control">
<small class="form-text">Example help text that remains unchanged.</small>
</div>
</div>
<div class="mb-3 row">
<label class="col-sm-2 form-label" for="password">Password</label>
<div class="col-sm-10">
<input type="password" name="password" placeholder="Pasword" class="form-control">
<small class="form-text">Example help text that remains unchanged.</small>
</div>
</div>
<div class="mb-3 row">
<div class="col-sm-10 offset-sm-2">
<input type="submit" class="btn btn-primary">
</div>
</div>
</form>
</div>
</div>
</div>
<div class="col-lg-6">
<div class="card">
<div class="card-header">Inline Form</div>
<div class="card-body">
<h5 class="card-title">Example inline form</h5>
<form accept-charset="utf-8">
<div class="row g-2">
<div class="col">
<label for="name" class="form-label sr-only">Name</label>
<input name="name" type="text" placeholder="Jane Doe" class="form-control">
</div>
<div class="col">
<label for="username" class="form-label sr-only">Password</label>
<input type="text" name="username" placeholder="Username" class="form-control">
</div>
<div class="col">
<button type="submit" class="btn btn-primary">Save</button>
</div>
</div>
</form>
</div>
</div>
</div>
<div class="col-lg-6">
<div class="card">
<div class="card-header">Modal Form</div>
<div class="card-body text-center">
<h5 class="card-title">Example popup signin form</h5>
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal">Launch form</button>
<div class="modal fade" id="exampleModal" role="dialog" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Signin Modal</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body text-start">
<p>Lorem ipsum dolor sit amet consectetur.</p>
<form accept-charset="utf-8">
<div class="mb-3">
<label for="email" class="form-label">Email</label>
<input type="email" name="email" placeholder="Email Address" class="form-control">
</div>
<div class="mb-3">
<label for="password" class="form-label">Password</label>
<input type="password" name="password" placeholder="Password" class="form-control">
</div>
<div class="mb-3">
<button type="submit" class="btn btn-primary">Signin</button>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-12">
<div class="card">
<div class="card-header">Form Validation</div>
<div class="card-body">
<h5 class="card-title">Example form with inline field validations</h5>
<form class="needs-validation" novalidate accept-charset="utf-8">
<div class="row g-2">
<div class="mb-3 col-md-6">
<label for="email" class="form-label">Email</label>
<input type="email" class="form-control" name="email" placeholder="Email" required>
<small class="form-text text-muted">Enter a valid email address.</small>
<div class="valid-feedback">Looks good!</div>
<div class="invalid-feedback">Please enter your email address.</div>
</div>
<div class="mb-3 col-md-6">
<label for="password" class="form-label">Password</label>
<input type="password" class="form-control" name="password" placeholder="Password" required>
<small class="form-text text-muted">Your password must be 8-20 characters long, contain letters and numbers only.</small>
<div class="valid-feedback">Looks good!</div>
<div class="invalid-feedback">Please enter your password.</div>
</div>
</div>
<div class="mb-3">
<label for="address" class="form-label">Address</label>
<input type="text" class="form-control" name="address" placeholder="1234 Main St, Unit, Building, or Floor" required>
<div class="valid-feedback">Looks good!</div>
<div class="invalid-feedback">Please enter your address.</div>
</div>
<div class="row g-2">
<div class="mb-3 col-md-6">
<label for="city" class="form-label">City</label>
<input type="text" class="form-control" name="city" placeholder="City" required>
<div class="valid-feedback">Looks good!</div>
<div class="invalid-feedback">Please enter your City.</div>
</div>
<div class="mb-3 col-md-4">
<label for="state" class="form-label">State</label>
<select name="state" class="form-select" required>
<option value="" selected>Choose...</option>
<option value="1">New York</option>
<option value="2">Los Angeles</option>
</select>
<div class="valid-feedback">Looks good!</div>
<div class="invalid-feedback">Please select a State.</div>
</div>
<div class="mb-3 col-md-2">
<label for="zip" class="form-label">Zip code</label>
<input type="text" class="form-control" name="zip" placeholder="00000" required>
<div class="valid-feedback">Looks good!</div>
<div class="invalid-feedback">Please enter a Zip code.</div>
</div>
</div>
<div class="mb-3">
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="check1" required>
<label class="form-check-label" for="check1">
Check me out
</label>
<div class="invalid-feedback">You must agree before submitting.</div>
</div>
</div>
<button type="submit" class="btn btn-primary"><i class="fas fa-save"></i> Save</button>
</form>
</div>
</div>
</div>
<div class="col-lg-12">
<div class="card">
<div class="card-header">All form elements</div>
<div class="card-body">
<h5 class="card-title"></h5>
<form class="">
<div class="mb-3 row">
<label class="col-sm-2">Normal</label>
<div class="col-sm-10">
<input type="text" name="" class="form-control">
</div>
</div>
<div class="line"></div><br>
<div class="mb-3 row">
<label class="col-sm-2">Help text</label>
<div class="col-sm-10">
<input type="text" class="form-control">
<small class="form-text text-muted">A help text that brings hint to users.</small>
</div>
</div>
<div class="line"></div><br>
<div class="mb-3 row">
<label class="col-sm-2">Password</label>
<div class="col-sm-10">
<input type="password" name="password" class="form-control">
</div>
</div>
<div class="line"></div><br>
<div class="mb-3 row">
<label class="col-sm-2">Placeholder</label>
<div class="col-sm-10">
<input type="text" placeholder="placeholder" class="form-control">
</div>
</div>
<div class="line"></div><br>
<div class="mb-3 row">
<label class="col-sm-2">Disabled</label>
<div class="col-sm-10">
<input type="text" disabled="" placeholder="disabled or read only input here" class="form-control" readonly>
</div>
</div>
<div class="line"></div><br>
<div class="mb-3 row">
<label class="col-sm-2">Checkboxes and radios <br>
<small class="text-info">Normal Bootstrap elements</small>
</label>
<div class="col-sm-10">
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="check2">
<label class="form-check-label" for="check2">
Check this default checkbox
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="flexRadioDefault" id="radio1">
<label class="form-check-label" for="radio1">
Default radio
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="flexRadioDefault" id="radio2" checked>
<label class="form-check-label" for="radio2">
Default checked radio
</label>
</div>
</div>
</div>
<div class="line"></div><br>
<div class="mb-3 row">
<label class="col-sm-2">Inline checkboxes</label>
<div class="col-sm-10">
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" id="inlineCheckbox1" value="option1">
<label class="form-check-label" for="inlineCheckbox1">1</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" id="inlineCheckbox2" value="option2">
<label class="form-check-label" for="inlineCheckbox2">2</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" id="inlineCheckbox3" value="option3" disabled>
<label class="form-check-label" for="inlineCheckbox3">3 (disabled)</label>
</div>
</div>
</div>
<div class="line"></div><br>
<div class="mb-3 row">
<label class="col-sm-2">Toggle Switch<br>
<small class="text-info">Custom elements</small>
</label>
<div class="col-sm-10">
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="flexSwitchCheckDefault">
<label class="form-check-label" for="flexSwitchCheckDefault">Default switch checkbox input</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="flexSwitchCheckChecked" checked>
<label class="form-check-label" for="flexSwitchCheckChecked">Checked switch checkbox input</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="flexSwitchCheckDisabled" disabled>
<label class="form-check-label" for="flexSwitchCheckDisabled">Disabled switch checkbox input</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="flexSwitchCheckCheckedDisabled" checked disabled>
<label class="form-check-label" for="flexSwitchCheckCheckedDisabled">Disabled checked switch checkbox input</label>
</div>
</div>
</div>
<div class="line"></div><br>
<div class="mb-3 row">
<label class="col-sm-2">Select</label>
<div class="col-sm-10 select">
<select name="" class="form-select">
<option value="">option 1</option>
<option value="">option 2</option>
<option value="">option 3</option>
<option value="">option 4</option>
</select>
</div>
<div class="col-sm-10 offset-sm-2 select">
<br>
<select name="" multiple="" class="form-select">
<option value="">option 1</option>
<option value="">option 2</option>
<option value="">option 3</option>
<option value="">option 4</option>
</select>
<small class="form-text">Select for than one</small>
</div>
</div>
<div class="line"></div><br>
<div class="mb-3 row">
<label class="col-sm-2">Input with success</label>
<div class="col-sm-10">
<input type="text" class="form-control is-valid">
</div>
</div>
<div class="line"></div><br>
<div class="mb-3 row">
<label class="col-sm-2">Input with warning</label>
<div class="col-sm-10">
<input type="text" class="form-control is-invalid">
</div>
</div>
<div class="line"></div><br>
<div class="mb-3 row has-danger">
<label class="col-sm-2">Input with error</label>
<div class="col-sm-10">
<input type="text" class="form-control is-invalid">
<div class="invalid-feedback">Read error message here.</div>
</div>
</div>
<div class="line"></div><br>
<div class="mb-3 row">
<label class="col-sm-2">Control sizing</label>
<div class="col-sm-10">
<div class="mb-3">
<input type="text" placeholder=".form-control-lg" class="form-control form-control-lg">
</div>
<div class="mb-3">
<input type="text" placeholder=".form-control" class="form-control">
</div>
<div class="mb-3">
<input type="text" placeholder=".form-control-sm" class="form-control form-control-sm">
</div>
</div>
</div>
<div class="line"></div><br>
<div class="mb-3 row">
<label class="col-sm-2">Column sizing</label>
<div class="col-sm-10">
<div class="row">
<div class="col-md-2">
<input type="text" placeholder=".col-md-2" class="form-control">
</div>
<div class="col-md-3">
<input type="text" placeholder=".col-md-3" class="form-control">
</div>
<div class="col-md-4">
<input type="text" placeholder=".col-md-4" class="form-control">
</div>
</div>
</div>
</div>
<div class="line"></div><br>
<div class="mb-3 row">
<label class="col-sm-2">Input groups</label>
<div class="col-sm-10">
<div class="mb-3">
<div class="input-group mb-3">
<span class="input-group-text" id="basic-addon1">@</span>
<input type="text" class="form-control" placeholder="Username" aria-label="Username" aria-describedby="basic-addon1">
</div>
</div>
<div class="mb-3">
<div class="input-group mb-3">
<input type="text" class="form-control" aria-label="Amount (to the nearest dollar)">
<span class="input-group-text">.00</span>
</div>
</div>
<div class="mb-3">
<div class="input-group mb-3">
<span class="input-group-text">$</span>
<input type="text" class="form-control" aria-label="Amount (to the nearest dollar)">
<span class="input-group-text">.00</span>
</div>
</div>
</div>
</div>
<div class="line"></div><br>
<div class="mb-3 row">
<label class="col-sm-2">Button addons</label>
<div class="col-sm-10">
<div class="mb-3">
<div class="input-group mb-3">
<button class="btn btn-primary" type="button" id="button-addon1">Go!</button>
<input type="text" class="form-control" placeholder="" aria-label="Example text with button addon" aria-describedby="button-addon1">
</div>
</div>
<div class="mb-3">
<div class="input-group mb-3">
<input type="text" class="form-control" placeholder="" aria-label="Example text with button addon" aria-describedby="button-addon2">
<button class="btn btn-primary" type="button" id="button-addon2">Go!</button>
</div>
</div>
</div>
</div>
<div class="line"></div><br>
<div class="mb-3 row">
<div class="col-sm-4 offset-sm-2">
<button type="submit" class="btn btn-secondary mb-2"><i class="fas fa-times"></i> Cancel</button>
<button type="submit" class="btn btn-primary mb-2"><i class="fas fa-save"></i> Save</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="assets/vendor/jquery/jquery.min.js"></script>
<script src="assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="assets/js/form-validator.js"></script>
<script src="assets/js/script.js"></script>
</body>
</html>