-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui-form-validation.html
482 lines (477 loc) · 21.4 KB
/
ui-form-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
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Form Validation | Repute - Responsive Multipurpose Bootstrap Theme</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Responsive Multipurpose Bootstrap Theme">
<meta name="author" content="The Develovers">
<!-- CSS -->
<link href="assets/css/bootstrap.css" rel="stylesheet" type="text/css">
<link href="assets/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="assets/css/main.css" rel="stylesheet" type="text/css">
<link href="assets/css/my-custom-styles.css" rel="stylesheet" type="text/css">
<!-- IE 9 Fallback-->
<!--[if IE 9]>
<link href="assets/css/ie.css" rel="stylesheet">
<![endif]-->
<!-- GOOGLE FONTS -->
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300,400italic,400,600,700' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Roboto+Condensed:300,300italic,400italic,700,400,300' rel='stylesheet' type='text/css'>
<!-- FAVICONS -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="assets/ico/repute144x144.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="assets/ico/repute114x114.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="assets/ico/repute72x72.png">
<link rel="apple-touch-icon-precomposed" href="assets/ico/repute57x57.png">
<link rel="shortcut icon" href="assets/ico/favicon.png">
</head>
<body>
<!-- WRAPPER -->
<div class="wrapper">
<!-- NAVBAR -->
<nav class="navbar navbar-default " role="navigation">
<div class="container">
<!-- TOPBAR -->
<div class="topbar">
<ul class="list-inline top-nav">
<li>
<div class="btn-group">
<button type="button" class="btn btn-link dropdown-toggle btn-xs" data-toggle="dropdown"><img src="assets/img/flags/United-Kingdom.png" alt="United Kingdom"> United Kingdom <span class="caret"></span></button>
<ul class="dropdown-menu dropdown-menu-right country-selector" role="menu">
<li>
<a href="#"><img src="assets/img/flags/United-Kingdom.png" alt="United Kingdom"> United Kingdom</a>
</li>
<li>
<a href="#"><img src="assets/img/flags/Japan.png" alt="Japan"> Japan</a>
</li>
<li>
<a href="#"><img src="assets/img/flags/China.png" alt="China"> China</a>
</li>
<li>
<a href="#"><img src="assets/img/flags/Germany.png" alt="Germany"> Germany</a>
</li>
</ul>
</div>
</li>
<li><a href="#">Help</a></li>
<li><a href="#">Support</a></li>
</ul>
<div class="searchbox">
<div class="input-group input-group-sm">
<input type="text" class="form-control" placeholder="search ...">
<span class="input-group-btn">
<button class="btn btn-default" type="button"><i class="fa fa-search"></i></button>
</span>
</div>
</div>
</div>
<!-- END TOPBAR -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#main-nav">
<span class="sr-only">Toggle Navigation</span>
<i class="fa fa-bars"></i>
</button>
<a href="index.html" class="navbar-brand navbar-logo navbar-logo-bigger">
<img src="assets/img/logo/repute-logo-nav.png" alt="Repute - Responsive Multipurpose Bootstrap Theme">
</a>
</div>
<!-- MAIN NAVIGATION -->
<div id="main-nav" class="navbar-collapse collapse navbar-mega-menu">
<ul class="nav navbar-nav navbar-right">
<li class="dropdown ">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">HOME <i class="fa fa-angle-down"></i></a>
<ul class="dropdown-menu" role="menu">
<li><a href="index.html">Home v1</a></li>
<li><a href="index-v1_dark-header.html">Home v1 Dark Header</a></li>
<li><a href="index-v1_light-footer.html">Home v1 Light Footer</a></li>
<li><a href="index-v2.html">Home v2</a></li>
<li><a href="index-v2_dark-header.html">Home v2 Dark Header</a></li>
<li><a href="index-v3.html">Home v3</a></li>
<li><a href="index-v4_fullscreen.html">Home v4 Fullscreen <span class="label label-danger label-main-nav">NEW</span></a></li>
<li><a href="index-v5_fullscreen_slider.html">Home v5 Fullscreen Slider <span class="label label-danger label-main-nav">NEW</span></a></li>
<li><a href="one-page/index.html">One Page</a></li>
</ul>
</li>
<li class="dropdown ">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">FEATURES <span class="label label-danger label-main-nav">NEW</span> <i class="fa fa-angle-down"></i></a>
<ul class="dropdown-menu" role="menu">
<li><a href="feature-navigation-menu.html">Navigation Menus</a></li>
<li><a href="feature-hero-unit.html">Hero Units</a></li>
<li><a href="feature-page-header.html">Page Header</a></li>
<li><a href="feature-footer.html">Footers</a></li>
</ul>
</li>
<li class="dropdown ">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">PAGES <i class="fa fa-angle-down"></i></a>
<ul class="dropdown-menu" role="menu">
<li><a href="page-services.html">Service Page</a></li>
<li><a href="page-pricing-tables.html">Pricing Tables</a></li>
<li class="dropdown ">
<a href="#">Columns <i class="fa fa-angle-right"></i></a>
<ul class="dropdown-menu" role="menu">
<li><a href="page-left-sidebar.html">Left Sidebar</a></li>
<li><a href="page-right-sidebar.html">Right Sidebar</a></li>
<li><a href="page-double-sidebar.html">Double Sidebar</a></li>
</ul>
</li>
<li><a href="page-search-results.html">Search Result</a></li>
<li><a href="page-support.html">Support</a></li>
<li><a href="page-faq.html">FAQ</a></li>
<li><a href="page-about-us.html">About Us</a></li>
<li><a href="page-contacts.html">Contact</a></li>
<li><a href="page-privacy.html">Privacy Policy</a></li>
<li><a href="page-terms.html">Terms</a></li>
<li><a href="page-error.html">Error Page</a></li>
<li class="dropdown ">
<a href="#">Sub Menu Lvl 1 <i class="fa fa-angle-right"></i></a>
<ul class="dropdown-menu" role="menu">
<li class="dropdown ">
<a href="#">Sub Menu Lvl 2 <i class="fa fa-angle-right"></i></a>
<ul class="dropdown-menu" role="menu">
<li><a href="#sublvl3">Sub Menu Lvl 3</a></li>
<li><a href="#sublvl3">Sub Menu Lvl 3</a></li>
</ul>
</li>
<li><a href="#sublvl2">Sub Menu Lvl 2</a></li>
<li><a href="#sublvl2">Sub Menu Lvl 2</a></li>
</ul>
</li>
</ul>
</li>
<li class="dropdown mega-menu">
<a href="#" data-toggle="dropdown">UI ELEMENTS <i class="fa fa-angle-down"></i></a>
<ul class="dropdown-menu mega-menu-container">
<li>
<div class="mega-menu-content">
<div class="row">
<div class="col-md-3">
<h5 class="menu-heading">Buttons & Icons</h5>
<ul class="list-unstyled list-menu">
<li><a href="ui-buttons.html"><i class="fa fa-square"></i> General Buttons</a></li>
<li><a href="ui-button-groups.html"><i class="fa fa-clone"></i> Button Groups</a></li>
<li><a href="ui-icons.html"><i class="fa fa-asterisk"></i> Icons</a></li>
</ul>
</div>
<div class="col-md-3">
<h5 class="menu-heading">Forms</h5>
<ul class="list-unstyled list-menu">
<li><a href="ui-form-elements-basic.html"><i class="fa fa-check-square"></i> Basic Form Elements</a></li>
<li><a href="ui-form-elements-advanced.html"><i class="fa fa-plus-square"></i> Advanced Form Elements</a></li>
<li><a href="ui-form-layouts.html"><i class="fa fa-columns"></i> Form Layouts</a></li>
<li class="active"><a href="ui-form-validation.html"><i class="fa fa-check-circle"></i> Validation</a></li>
</ul>
</div>
<div class="col-md-3">
<h5 class="menu-heading">Content Elements</h5>
<ul class="list-unstyled list-menu">
<li><a href="ui-tabs-accordion.html"><i class="fa fa-list-alt"></i> Tabs & Accordion</a></li>
<li><a href="ui-boxed-contents.html"><i class="fa fa-suitcase"></i> Boxed Contents</a></li>
<li><a href="ui-numbers-charts.html"><i class="fa fa-pie-chart"></i> Numbers & Charts</a></li>
<li><a href="ui-typography.html"><i class="fa fa-font"></i> Typography</a></li>
</ul>
</div>
<div class="col-md-3">
<h5 class="menu-heading">Components</h5>
<ul class="list-unstyled list-menu">
<li><a href="ui-testimonials.html"><i class="fa fa-thumbs-up"></i> Testimonials</a></li>
<li><a href="ui-maps.html"><i class="fa fa-map"></i> Maps</a></li>
<li><a href="ui-breadcrumbs.html"><i class="fa fa-angle-right"></i> Breadcrumbs</a></li>
<li><a href="ui-alerts.html"><i class="fa fa-warning"></i> Alerts</a></li>
<li><a href="ui-pagination.html"><i class="fa fa-ellipsis-h"></i> Pagination</a></li>
</ul>
</div>
</div>
</div>
</li>
</ul>
</li>
<li class="dropdown ">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">PORTFOLIO <i class="fa fa-angle-down"></i></a>
<ul class="dropdown-menu" role="menu">
<li><a href="portfolio-4-columns.html">Portfolio 4 Columns</a></li>
<li><a href="portfolio-3-columns.html">Portfolio 3 Columns</a></li>
<li><a href="portfolio-2-columns.html">Portfolio 2 Columns</a></li>
<li><a href="portfolio-single.html">Portfolio Item</a></li>
</ul>
</li>
<li class="dropdown ">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">SHOP <i class="fa fa-angle-down"></i></a>
<ul class="dropdown-menu" role="menu">
<li><a href="shop/index.html">Front Page</a></li>
<li><a href="shop/single-product-page.html">Single Product Page</a></li>
<li><a href="shop/product-filter-grid.html">Search Result with Filter</a></li>
<li><a href="shop/checkout.html">Checkout with Validation</a></li>
<li><a href="shop/shop-login.html">Login</a></li>
<li><a href="shop/shop-register.html">Register</a></li>
</ul>
</li>
<li class="dropdown ">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">BLOG <i class="fa fa-angle-down"></i></a>
<ul class="dropdown-menu" role="menu">
<li><a href="blog-medium-thumbnail.html">Blog Medium Thumbnail</a></li>
<li><a href="blog-full-thumbnail.html">Blog Full Thumbnail</a></li>
<li><a href="blog-single.html">Blog Single</a></li>
<li><a href="blog-single-full.html">Blog Single Full</a></li>
</ul>
</li>
</ul>
</div>
<!-- END MAIN NAVIGATION -->
</div>
</nav>
<!-- END NAVBAR -->
<!-- BREADCRUMBS -->
<div class="page-header">
<div class="container">
<h1 class="page-title pull-left">FORM VALIDATION</h1>
<ol class="breadcrumb">
<li><a href="#">Home</a></li>
<li><a href="#">UI Elements</a></li>
<li><a href="#">Forms</a></li>
<li class="active">Validation</li>
</ol>
</div>
</div>
<!-- END BREADCRUMBS -->
<!-- PAGE CONTENT -->
<div class="page-content">
<div class="container">
<div class="row">
<div class="col-md-3">
<ul id="sidebar-nav" class="sidebar-nav margin-bottom-30px">
<li class="list-group-item has-submenu ">
<a href="#Buttons" class="submenu-toggle" data-toggle="collapse" data-parent="sidebar-nav">Buttons</a>
<ul id="Buttons" class="list-unstyled collapse submenu ">
<li><a href="ui-buttons.html">General Buttons</a></li>
<li><a href="ui-button-groups.html">Button Groups</a></li>
</ul>
</li>
<li class="list-group-item "><a href="ui-tabs-accordion.html">Tabs & Accordion</a></li>
<li class="list-group-item has-submenu ">
<a href="#Components" class="submenu-toggle" data-toggle="collapse" data-parent="sidebar-nav">Components</a>
<ul id="Components" class="list-unstyled collapse submenu ">
<li><a href="ui-alerts.html">Alerts</a></li>
<li><a href="ui-breadcrumbs.html">Breadcrumbs</a></li>
<li><a href="ui-pagination.html">Pagination</a></li>
</ul>
</li>
<li class="list-group-item has-submenu active">
<a href="#Forms" class="submenu-toggle" data-toggle="collapse" data-parent="sidebar-nav">Forms</a>
<ul id="Forms" class="list-unstyled collapse submenu in">
<li><a href="ui-form-elements-basic.html">Basic Form Elements</a></li>
<li><a href="ui-form-elements-advanced.html">Advanced Form Elements</a></li>
<li><a href="ui-form-layouts.html">Form Layouts</a></li>
<li class="active"><a href="ui-form-validation.html">Validation</a></li>
</ul>
</li>
<li class="list-group-item "><a href="ui-numbers-charts.html">Numbers & Charts</a></li>
<li class="list-group-item "><a href="ui-boxed-contents.html">Boxed Contents</a></li>
<li class="list-group-item "><a href="ui-testimonials.html">Testimonials</a></li>
<li class="list-group-item "><a href="ui-maps.html">Maps</a></li>
<li class="list-group-item "><a href="ui-typography.html">Typography</a></li>
<li class="list-group-item "><a href="ui-icons.html">Icons</a></li>
</ul>
</div>
<div class="col-md-9">
<!-- BASIC VALIDATION -->
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title section-heading no-margin">Basic Validation</h2>
</div>
<div class="panel-body">
<form method="post" data-parsley-validate>
<div class="form-group">
<label for="text-input">Text Input</label>
<input type="text" id="text-input" class="form-control" required>
</div>
<div class="form-group">
<label>Text Area</label>
<textarea class="form-control" name="textarea" rows="5" cols="30" required></textarea>
</div>
<div class="form-group">
<label>Checkbox</label>
<label class="fancy-checkbox">
<input type="checkbox" name="checkbox1" required data-parsley-errors-container="#error-checkbox">
<span>Option 1</span>
</label>
<label class="fancy-checkbox">
<input type="checkbox" name="checkbox1">
<span>Option 2</span>
</label>
<label class="fancy-checkbox">
<input type="checkbox" name="checkbox1">
<span>Option 3</span>
</label>
<p id="error-checkbox"></p>
</div>
<div class="form-group">
<label>Radio Button</label>
<label class="fancy-radio">
<input type="radio" name="gender" required data-parsley-errors-container="#error-radio">
<span><i></i>Male</span>
</label>
<label class="fancy-radio">
<input type="radio" name="gender">
<span><i></i>Female</span>
</label>
<p id="error-radio"></p>
</div>
<input type="submit" class="btn btn-primary" value="Validate">
</form>
</div>
</div>
<!-- END BASIC VALIDATION -->
<!-- ADVANCED VALIDATION -->
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title section-heading no-margin">Advanced Validation</h2>
</div>
<div class="panel-body">
<form id="advanced-form" data-parsley-validate>
<div class="form-group">
<label for="text-input1">Min. 8 Characters</label>
<input type="text" id="text-input1" class="form-control" required data-parsley-minlength="8">
</div>
<div class="form-group">
<label for="text-input2">Between 5-10 Characters</label>
<input type="text" id="text-input2" class="form-control" required data-parsley-length="[5,10]">
</div>
<div class="form-group">
<label for="text-input3">Min. Number ( >= 5 )</label>
<input type="text" id="text-input3" class="form-control" required data-parsley-min="5">
</div>
<div class="form-group">
<label for="text-input4">Between 20-30</label>
<input type="text" id="text-input4" class="form-control" required data-parsley-range="[20,30]">
</div>
<div class="form-group">
<label>Select Min. 2 Options</label>
<label class="fancy-checkbox">
<input type="checkbox" name="checkbox2" required data-parsley-mincheck="2" data-parsley-errors-container="#error-checkbox2">
<span>Option 1</span>
</label>
<label class="fancy-checkbox">
<input type="checkbox" name="checkbox2">
<span>Option 2</span>
</label>
<label class="fancy-checkbox">
<input type="checkbox" name="checkbox2">
<span>Option 3</span>
</label>
<p id="error-checkbox2"></p>
</div>
<div class="form-group">
<label>Select Between 1-2 Options</label>
<label class="fancy-checkbox">
<input type="checkbox" name="checkbox3" required data-parsley-range="[1,2]" data-parsley-errors-container="#error-checkbox3">
<span>Option 1</span>
</label>
<label class="fancy-checkbox">
<input type="checkbox" name="checkbox3">
<span>Option 2</span>
</label>
<label class="fancy-checkbox">
<input type="checkbox" name="checkbox3">
<span>Option 3</span>
</label>
<p id="error-checkbox3"></p>
</div>
<input type="submit" class="btn btn-primary" value="Validate">
</form>
</div>
</div>
<!-- END ADVANCED VALIDATION -->
</div>
</div>
</div>
</div>
<!-- END PAGE CONTENT -->
<!-- FOOTER -->
<footer>
<div class="container">
<div class="row">
<div class="col-md-4">
<!-- COLUMN 1 -->
<h3 class="sr-only">ABOUT US</h3>
<img src="assets/img/logo/repute-logo-light.png" class="logo" alt="Repute">
<p>Proactively aggregate B2B initiatives before extensive channels. Monotonectally extend interactive methods of empowerment through excellent applications. Rapidiously synergize visionary products with sticky technology.</p>
<br>
<address class="margin-bottom-30px">
<ul class="list-unstyled">
<li>1234 North Main Street
<br/> New York, NY 222222</li>
<li>Phone: (1800) 765 - 4321</li>
<li>Email: [email protected]</li>
</ul>
</address>
<!-- END COLUMN 1 -->
</div>
<div class="col-md-4">
<!-- COLUMN 2 -->
<h3 class="footer-heading">USEFUL LINKS</h3>
<div class="row margin-bottom-30px">
<div class="col-xs-6">
<ul class="list-unstyled footer-nav">
<li><a href="#">About Us</a></li>
<li><a href="#">News</a></li>
<li><a href="#">Community</a></li>
<li><a href="#">Career</a></li>
<li><a href="#">Blog</a></li>
</ul>
</div>
<div class="col-xs-6">
<ul class="list-unstyled footer-nav">
<li><a href="#">Press Kit</a></li>
<li><a href="#">FAQ</a></li>
<li><a href="#">Terms</a></li>
<li><a href="#">Privacy Policy</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
</div>
</div>
<!-- END COLUMN 2 -->
</div>
<div class="col-md-4">
<!-- COLUMN 3 -->
<div class="newsletter">
<h3 class="footer-heading">NEWSLETTER</h3>
<p>Get the latest update from us by subscribing to our newsletter.</p>
<form class="newsletter-form" method="POST">
<div class="input-group input-group-lg">
<input type="email" class="form-control" name="email" placeholder="[email protected]">
<span class="input-group-btn"><button class="btn btn-primary" type="button"><i class="fa fa-spinner fa-spin"></i><span>SUBSCRIBE</span></button>
</span>
</div>
<div class="alert"></div>
</form>
</div>
<div class="social-connect">
<h3 class="footer-heading">GET CONNECTED</h3>
<ul class="list-inline social-icons">
<li><a href="#" class="facebook-bg"><i class="fa fa-facebook"></i></a></li>
<li><a href="#" class="twitter-bg"><i class="fa fa-twitter"></i></a></li>
<li><a href="#" class="googleplus-bg"><i class="fa fa-google-plus"></i></a></li>
<li><a href="#" class="rss-bg"><i class="fa fa-rss"></i></a></li>
</ul>
</div>
<!-- END COLUMN 3 -->
</div>
</div>
</div>
<!-- COPYRIGHT -->
<div class="text-center copyright">
©2015 The Develovers. All Rights Reserved.
</div>
<!-- END COPYRIGHT -->
</footer>
<!-- END FOOTER -->
</div>
<!-- END WRAPPER -->
<!-- JAVASCRIPTS -->
<script src="assets/js/jquery-2.1.1.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/plugins/parsley-validation/parsley.min.js"></script>
<script src="assets/js/plugins/autohidingnavbar/jquery.bootstrap-autohidingnavbar.min.js"></script>
<script src="assets/js/repute-scripts.js"></script>
</body>
</html>