form_validation.html 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <!-- Meta, title, CSS, favicons, etc. -->
  6. <meta charset="utf-8">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  8. <meta name="viewport" content="width=device-width, initial-scale=1">
  9. <title>Gentelella Alela! | </title>
  10. <!-- Bootstrap -->
  11. <link href="../vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
  12. <!-- Font Awesome -->
  13. <link href="../vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  14. <!-- NProgress -->
  15. <link href="../vendors/nprogress/nprogress.css" rel="stylesheet">
  16. <!-- Custom Theme Style -->
  17. <link href="../build/css/custom.css" rel="stylesheet">
  18. <link href="../build/css/style-extra-bs4.css" rel="stylesheet">
  19. </head>
  20. <body class="nav-md">
  21. <div class="body">
  22. <div class="main_container container-fluid">
  23. <div class="row">
  24. <div class="col-lg-2 col-md-2 left_col">
  25. <div class="left_col">
  26. <div class="navbar nav_title" style="border: 0;">
  27. <a href="index.html" class="site_title"><i class="fa fa-paw"></i> <span>Gentelella Alela!</span></a>
  28. </div>
  29. <div class="clearfix"></div>
  30. <!-- menu profile quick info -->
  31. <div class="profile clearfix">
  32. <div class="profile_pic">
  33. <img src="images/img.jpg" alt="..." class="img-circle profile_img">
  34. </div>
  35. <div class="profile_info">
  36. <span>Welcome,</span>
  37. <h2>John Doe</h2>
  38. </div>
  39. </div>
  40. <!-- /menu profile quick info -->
  41. <br/>
  42. <!-- sidebar menu -->
  43. <div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
  44. <div class="menu_section">
  45. <h3>General</h3>
  46. <ul class="nav side-menu">
  47. <li><a><i class="fa fa-home"></i> Home <span class="fa fa-chevron-down"></span></a>
  48. <ul class="nav child_menu">
  49. <li><a href="index.html">Dashboard</a></li>
  50. <li><a href="index2.html">Dashboard2</a></li>
  51. <li><a href="index3.html">Dashboard3</a></li>
  52. </ul>
  53. </li>
  54. <li><a><i class="fa fa-edit"></i> Forms <span class="fa fa-chevron-down"></span></a>
  55. <ul class="nav child_menu">
  56. <li><a href="form.html">General Form</a></li>
  57. <li><a href="form_advanced.html">Advanced Components</a></li>
  58. <li><a href="form_validation.html">Form Validation</a></li>
  59. <li><a href="form_wizards.html">Form Wizard</a></li>
  60. <li><a href="form_upload.html">Form Upload</a></li>
  61. <li><a href="form_buttons.html">Form Buttons</a></li>
  62. </ul>
  63. </li>
  64. <li><a><i class="fa fa-desktop"></i> UI Elements <span
  65. class="fa fa-chevron-down"></span></a>
  66. <ul class="nav child_menu">
  67. <li><a href="general_elements.html">General Elements</a></li>
  68. <li><a href="media_gallery.html">Media Gallery</a></li>
  69. <li><a href="typography.html">Typography</a></li>
  70. <li><a href="icons.html">Icons</a></li>
  71. <li><a href="widgets.html">Widgets</a></li>
  72. <li><a href="invoice.html">Invoice</a></li>
  73. <li><a href="inbox.html">Inbox</a></li>
  74. <li><a href="calendar.html">Calendar</a></li>
  75. </ul>
  76. </li>
  77. <li><a><i class="fa fa-table"></i> Tables <span class="fa fa-chevron-down"></span></a>
  78. <ul class="nav child_menu">
  79. <li><a href="tables.html">Tables</a></li>
  80. <li><a href="tables_dynamic.html">Table Dynamic</a></li>
  81. </ul>
  82. </li>
  83. <li><a><i class="fa fa-bar-chart-o"></i> Data Presentation <span
  84. class="fa fa-chevron-down"></span></a>
  85. <ul class="nav child_menu">
  86. <li><a href="chartjs.html">Chart JS</a></li>
  87. <li><a href="chartjs2.html">Chart JS2</a></li>
  88. <li><a href="morisjs.html">Moris JS</a></li>
  89. <li><a href="echarts.html">ECharts</a></li>
  90. <li><a href="other_charts.html">Other Charts</a></li>
  91. </ul>
  92. </li>
  93. <li><a><i class="fa fa-clone"></i>Layouts <span class="fa fa-chevron-down"></span></a>
  94. <ul class="nav child_menu">
  95. <li><a href="fixed_sidebar.html">Fixed Sidebar</a></li>
  96. <li><a href="fixed_footer.html">Fixed Footer</a></li>
  97. </ul>
  98. </li>
  99. </ul>
  100. </div>
  101. <div class="menu_section">
  102. <h3>Live On</h3>
  103. <ul class="nav side-menu">
  104. <li><a><i class="fa fa-bug"></i> Additional Pages <span
  105. class="fa fa-chevron-down"></span></a>
  106. <ul class="nav child_menu">
  107. <li><a href="e_commerce.html">E-commerce</a></li>
  108. <li><a href="projects.html">Projects</a></li>
  109. <li><a href="project_detail.html">Project Detail</a></li>
  110. <li><a href="contacts.html">Contacts</a></li>
  111. <li><a href="profile.html">Profile</a></li>
  112. </ul>
  113. </li>
  114. <li><a><i class="fa fa-windows"></i> Extras <span class="fa fa-chevron-down"></span></a>
  115. <ul class="nav child_menu">
  116. <li><a href="page_403.html">403 Error</a></li>
  117. <li><a href="page_404.html">404 Error</a></li>
  118. <li><a href="page_500.html">500 Error</a></li>
  119. <li><a href="plain_page.html">Plain Page</a></li>
  120. <li><a href="login.html">Login Page</a></li>
  121. <li><a href="pricing_tables.html">Pricing Tables</a></li>
  122. </ul>
  123. </li>
  124. <li><a><i class="fa fa-sitemap"></i> Multilevel Menu <span
  125. class="fa fa-chevron-down"></span></a>
  126. <ul class="nav child_menu">
  127. <li><a href="#level1_1">Level One</a></li>
  128. <li><a>Level One<span class="fa fa-chevron-down"></span></a>
  129. <ul class="nav child_menu">
  130. <li class="sub_menu"><a href="level2.html">Level Two</a>
  131. </li>
  132. <li><a href="#level2_1">Level Two</a>
  133. </li>
  134. <li><a href="#level2_2">Level Two</a>
  135. </li>
  136. </ul>
  137. </li>
  138. <li><a href="#level1_2">Level One</a>
  139. </li>
  140. </ul>
  141. </li>
  142. <li><a href="javascript:void(0)"><i class="fa fa-laptop"></i> Landing Page <span
  143. class="label label-success pull-right">Coming Soon</span></a></li>
  144. </ul>
  145. </div>
  146. </div>
  147. <!-- /sidebar menu -->
  148. <!-- /menu footer buttons -->
  149. <div class="sidebar-footer col-lg-2 hidden-small">
  150. <a data-toggle="tooltip" data-placement="top" title="Settings">
  151. <span class="fa fa-cog" aria-hidden="true"></span>
  152. </a>
  153. <a data-toggle="tooltip" data-placement="top" title="FullScreen">
  154. <span class="fa fa-arrows-alt" aria-hidden="true"></span>
  155. </a>
  156. <a data-toggle="tooltip" data-placement="top" title="Lock">
  157. <span class="fa fa-eye-slash" aria-hidden="true"></span>
  158. </a>
  159. <a data-toggle="tooltip" data-placement="top" title="Logout" href="login.html">
  160. <span class="fa fa-power-off" aria-hidden="true"></span>
  161. </a>
  162. </div>
  163. <!-- /menu footer buttons -->
  164. </div>
  165. </div>
  166. <div class="col-lg-10 col-md-12 right_col_wrapper">
  167. <div class="row">
  168. <!-- top navigation -->
  169. <div class="top_nav col-lg-12">
  170. <div class="nav_menu">
  171. <nav>
  172. <div class="nav toggle">
  173. <a id="menu_toggle"><i class="fa fa-bars"></i></a>
  174. </div>
  175. <ul class="nav navbar-nav navbar-right">
  176. <li class="">
  177. <a href="javascript:;" class="user-profile dropdown-toggle"
  178. data-toggle="dropdown"
  179. aria-expanded="false">
  180. <img src="images/img.jpg" alt="">John Doe
  181. <span class=" fa fa-angle-down"></span>
  182. </a>
  183. <ul class="dropdown-menu dropdown-usermenu pull-right">
  184. <li><a href="javascript:;"> Profile</a></li>
  185. <li>
  186. <a href="javascript:;">
  187. <span class="badge bg-red pull-right">50%</span>
  188. <span>Settings</span>
  189. </a>
  190. </li>
  191. <li><a href="javascript:;">Help</a></li>
  192. <li><a href="login.html"><i class="fa fa-sign-out pull-right"></i> Log
  193. Out</a>
  194. </li>
  195. </ul>
  196. </li>
  197. <li role="presentation" class="dropdown">
  198. <a href="javascript:;" class="dropdown-toggle info-number"
  199. data-toggle="dropdown"
  200. aria-expanded="false">
  201. <i class="fa fa-envelope-o"></i>
  202. <span class="badge bg-green">6</span>
  203. </a>
  204. <ul id="menu1" class="dropdown-menu list-unstyled msg_list" role="menu">
  205. <li>
  206. <a>
  207. <span class="image"><img src="images/img.jpg"
  208. alt="Profile Image"/></span>
  209. <span>
  210. <span>John Smith</span>
  211. <span class="time">3 mins ago</span>
  212. </span>
  213. <span class="message">
  214. Film festivals used to be do-or-die moments for movie makers. They were where...
  215. </span>
  216. </a>
  217. </li>
  218. <li>
  219. <a>
  220. <span class="image"><img src="images/img.jpg"
  221. alt="Profile Image"/></span>
  222. <span>
  223. <span>John Smith</span>
  224. <span class="time">3 mins ago</span>
  225. </span>
  226. <span class="message">
  227. Film festivals used to be do-or-die moments for movie makers. They were where...
  228. </span>
  229. </a>
  230. </li>
  231. <li>
  232. <a>
  233. <span class="image"><img src="images/img.jpg"
  234. alt="Profile Image"/></span>
  235. <span>
  236. <span>John Smith</span>
  237. <span class="time">3 mins ago</span>
  238. </span>
  239. <span class="message">
  240. Film festivals used to be do-or-die moments for movie makers. They were where...
  241. </span>
  242. </a>
  243. </li>
  244. <li>
  245. <a>
  246. <span class="image"><img src="images/img.jpg"
  247. alt="Profile Image"/></span>
  248. <span>
  249. <span>John Smith</span>
  250. <span class="time">3 mins ago</span>
  251. </span>
  252. <span class="message">
  253. Film festivals used to be do-or-die moments for movie makers. They were where...
  254. </span>
  255. </a>
  256. </li>
  257. <li>
  258. <div class="text-center">
  259. <a>
  260. <strong>See All Alerts</strong>
  261. <i class="fa fa-angle-right"></i>
  262. </a>
  263. </div>
  264. </li>
  265. </ul>
  266. </li>
  267. </ul>
  268. </nav>
  269. </div>
  270. </div>
  271. <!-- /top navigation -->
  272. <!-- page content -->
  273. <div class="right_col col-lg-12" role="main">
  274. <div class="">
  275. <div class="page-title row">
  276. <div class="text-left col-sm-6 col-12">
  277. <h3>Form Validation</h3>
  278. </div>
  279. <div class="text-right col-sm-6 col-12">
  280. <div class="row">
  281. <div class="offset-xl-7 col-xl-5 col-lg-12 col-md-12 col-sm-5 col-12 form-group pull-right top_search mt-3">
  282. <div class="input-group">
  283. <input type="text" class="form-control" placeholder="Search for...">
  284. <span class="input-group-btn">
  285. <button class="btn btn-light" type="button">Go!</button>
  286. </span>
  287. </div>
  288. </div>
  289. </div>
  290. </div>
  291. </div>
  292. <div class="clearfix"></div>
  293. <div class="row">
  294. <div class="col-md-12 col-sm-12 col-12">
  295. <div class="x_panel">
  296. <div class="x_title">
  297. <h2>Form validation
  298. <small>sub title</small>
  299. </h2>
  300. <ul class="nav navbar-right panel_toolbox">
  301. <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
  302. </li>
  303. <li class="dropdown">
  304. <a href="#" class="dropdown-toggle" data-toggle="dropdown"
  305. role="button"
  306. aria-expanded="false"><i class="fa fa-wrench"></i></a>
  307. <ul class="dropdown-menu" role="menu">
  308. <li><a href="#">Settings 1</a>
  309. </li>
  310. <li><a href="#">Settings 2</a>
  311. </li>
  312. </ul>
  313. </li>
  314. <li><a class="close-link"><i class="fa fa-close"></i></a>
  315. </li>
  316. </ul>
  317. <div class="clearfix"></div>
  318. </div>
  319. <div class="x_content">
  320. <form class="form-horizontal form-label-left" novalidate>
  321. <p>For alternative validation library <code>parsleyJS</code> check out
  322. in
  323. the <a
  324. href="form.html">form page</a>
  325. </p>
  326. <span class="section">Personal Info</span>
  327. <div class="item form-group">
  328. <div class="row">
  329. <label class="control-label col-md-3 col-sm-3 col-12"
  330. for="name">Name
  331. <span class="required">*</span>
  332. </label>
  333. <div class="col-md-6 col-sm-6 col-12">
  334. <input id="name" class="form-control col-md-7 col-12"
  335. data-validate-length-range="6"
  336. data-validate-words="2"
  337. name="name" placeholder="both name(s) e.g Jon Doe"
  338. required="required" type="text">
  339. </div>
  340. </div>
  341. </div>
  342. <div class="item form-group">
  343. <div class="row">
  344. <label class="control-label col-md-3 col-sm-3 col-12"
  345. for="email">Email
  346. <span class="required">*</span>
  347. </label>
  348. <div class="col-md-6 col-sm-6 col-12">
  349. <input type="email" id="email" name="email"
  350. required="required"
  351. class="form-control col-md-7 col-12">
  352. </div>
  353. </div>
  354. </div>
  355. <div class="item form-group">
  356. <div class="row">
  357. <label class="control-label col-md-3 col-sm-3 col-12"
  358. for="email">Confirm
  359. Email <span class="required">*</span>
  360. </label>
  361. <div class="col-md-6 col-sm-6 col-12">
  362. <input type="email" id="email2" name="confirm_email"
  363. data-validate-linked="email" required="required"
  364. class="form-control col-md-7 col-12">
  365. </div>
  366. </div>
  367. </div>
  368. <div class="item form-group">
  369. <div class="row">
  370. <label class="control-label col-md-3 col-sm-3 col-12"
  371. for="number">Number
  372. <span class="required">*</span>
  373. </label>
  374. <div class="col-md-6 col-sm-6 col-12">
  375. <input type="number" id="number" name="number"
  376. required="required"
  377. data-validate-minmax="10,100"
  378. class="form-control col-md-7 col-12">
  379. </div>
  380. </div>
  381. </div>
  382. <div class="item form-group">
  383. <div class="row">
  384. <label class="control-label col-md-3 col-sm-3 col-12"
  385. for="website">Website
  386. URL <span class="required">*</span>
  387. </label>
  388. <div class="col-md-6 col-sm-6 col-12">
  389. <input type="url" id="website" name="website"
  390. required="required"
  391. placeholder="www.website.com"
  392. class="form-control col-md-7 col-12">
  393. </div>
  394. </div>
  395. </div>
  396. <div class="item form-group">
  397. <div class="row">
  398. <label class="control-label col-md-3 col-sm-3 col-12"
  399. for="occupation">Occupation
  400. <span class="required">*</span>
  401. </label>
  402. <div class="col-md-6 col-sm-6 col-12">
  403. <input id="occupation" type="text" name="occupation"
  404. data-validate-length-range="5,20"
  405. class="optional form-control col-md-7 col-12">
  406. </div>
  407. </div>
  408. </div>
  409. <div class="item form-group">
  410. <div class="row">
  411. <label for="password"
  412. class="control-label col-md-3">Password</label>
  413. <div class="col-md-6 col-sm-6 col-12">
  414. <input id="password" type="password" name="password"
  415. data-validate-length="6,8"
  416. class="form-control col-md-7 col-12"
  417. required="required">
  418. </div>
  419. </div>
  420. </div>
  421. <div class="item form-group">
  422. <div class="row">
  423. <label for="password2"
  424. class="control-label col-md-3 col-sm-3 col-12">Repeat
  425. Password</label>
  426. <div class="col-md-6 col-sm-6 col-12">
  427. <input id="password2" type="password" name="password2"
  428. data-validate-linked="password"
  429. class="form-control col-md-7 col-12"
  430. required="required">
  431. </div>
  432. </div>
  433. </div>
  434. <div class="item form-group">
  435. <div class="row">
  436. <label class="control-label col-md-3 col-sm-3 col-12"
  437. for="telephone">Telephone
  438. <span class="required">*</span>
  439. </label>
  440. <div class="col-md-6 col-sm-6 col-12">
  441. <input type="tel" id="telephone" name="phone"
  442. required="required"
  443. data-validate-length-range="8,20"
  444. class="form-control col-md-7 col-12">
  445. </div>
  446. </div>
  447. </div>
  448. <div class="item form-group">
  449. <div class="row">
  450. <label class="control-label col-md-3 col-sm-3 col-12"
  451. for="textarea">Textarea
  452. <span class="required">*</span>
  453. </label>
  454. <div class="col-md-6 col-sm-6 col-12">
  455. <textarea id="textarea" required="required" name="textarea"
  456. class="form-control col-md-7 col-12"></textarea>
  457. </div>
  458. </div>
  459. </div>
  460. <div class="ln_solid"></div>
  461. <div class="form-group">
  462. <div class="row">
  463. <div class="col-md-6 col-md-offset-3">
  464. <button type="submit" class="btn btn-primary">Cancel
  465. </button>
  466. <button id="send" type="submit" class="btn btn-success">
  467. Submit
  468. </button>
  469. </div>
  470. </div>
  471. </div>
  472. </form>
  473. </div>
  474. </div>
  475. </div>
  476. </div>
  477. </div>
  478. </div>
  479. <!-- /page content -->
  480. <!-- footer content -->
  481. <footer class="col-lg-12">
  482. <div class="pull-right">
  483. Gentelella - Bootstrap Admin Template by <a href="https://colorlib.com">Colorlib</a>
  484. </div>
  485. <div class="clearfix"></div>
  486. </footer>
  487. <!-- /footer content -->
  488. </div>
  489. </div>
  490. </div>
  491. </div>
  492. </div>
  493. <!-- jQuery -->
  494. <script src="../vendors/jquery/dist/jquery.min.js"></script>
  495. <!-- Bootstrap -->
  496. <script src="../vendors/bootstrap/dist/js/bootstrap.min.js"></script>
  497. <!-- FastClick -->
  498. <script src="../vendors/fastclick/lib/fastclick.js"></script>
  499. <!-- NProgress -->
  500. <script src="../vendors/nprogress/nprogress.js"></script>
  501. <!-- validator -->
  502. <script src="../vendors/validator/validator.js"></script>
  503. <!-- Custom Theme Scripts -->
  504. <script src="../build/js/custom.min.js"></script>
  505. </body>
  506. </html>