basic.html 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593
  1. <!DOCTYPE html>
  2. <html lang="zh">
  3. <head>
  4. <th:block th:include="include :: header('基本表单')" />
  5. </head>
  6. <body class="gray-bg">
  7. <div class="wrapper wrapper-content animated fadeInRight">
  8. <div class="row">
  9. <div class="col-sm-7">
  10. <div class="ibox float-e-margins">
  11. <div class="ibox-title">
  12. <h5>基本表单 <small>简单登录表单示例</small></h5>
  13. <div class="ibox-tools">
  14. <a class="collapse-link">
  15. <i class="fa fa-chevron-up"></i>
  16. </a>
  17. <a class="dropdown-toggle" data-toggle="dropdown" href="#">
  18. <i class="fa fa-wrench"></i>
  19. </a>
  20. <ul class="dropdown-menu dropdown-user">
  21. <li><a href="#">选项1</a>
  22. </li>
  23. <li><a href="#">选项2</a>
  24. </li>
  25. </ul>
  26. <a class="close-link">
  27. <i class="fa fa-times"></i>
  28. </a>
  29. </div>
  30. </div>
  31. <div class="ibox-content">
  32. <div class="row">
  33. <div class="col-sm-6 b-r">
  34. <h3 class="m-t-none m-b">登录</h3>
  35. <p>欢迎登录本站(⊙o⊙)</p>
  36. <form role="form">
  37. <div class="form-group">
  38. <label>用户名</label>
  39. <input type="email" placeholder="请输入您注册的E-mail" class="form-control">
  40. </div>
  41. <div class="form-group">
  42. <label>密码</label>
  43. <input type="password" placeholder="请输入密码" class="form-control">
  44. </div>
  45. <div>
  46. <button class="btn btn-sm btn-primary pull-right m-t-n-xs" type="submit"><strong>登 录</strong>
  47. </button>
  48. <label>
  49. <input type="checkbox">自动登录</label>
  50. </div>
  51. </form>
  52. </div>
  53. <div class="col-sm-6">
  54. <h4>还不是会员?</h4>
  55. <p>您可以注册一个新账户</p>
  56. <p class="text-center">
  57. <a href="#"><i class="fa fa-sign-in big-icon"></i></a>
  58. </p>
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. <div class="col-sm-5">
  65. <div class="ibox float-e-margins">
  66. <div class="ibox-title">
  67. <h5>横向表单</h5>
  68. <div class="ibox-tools">
  69. <a class="collapse-link">
  70. <i class="fa fa-chevron-up"></i>
  71. </a>
  72. <a class="dropdown-toggle" data-toggle="dropdown" href="#">
  73. <i class="fa fa-wrench"></i>
  74. </a>
  75. <ul class="dropdown-menu dropdown-user">
  76. <li><a href="#">选项1</a>
  77. </li>
  78. <li><a href="#">选项2</a>
  79. </li>
  80. </ul>
  81. <a class="close-link">
  82. <i class="fa fa-times"></i>
  83. </a>
  84. </div>
  85. </div>
  86. <div class="ibox-content">
  87. <form class="form-horizontal">
  88. <p>欢迎登录本站(⊙o⊙)</p>
  89. <div class="form-group">
  90. <label class="col-sm-3 control-label">用户名:</label>
  91. <div class="col-sm-8">
  92. <input type="email" placeholder="用户名" class="form-control"> <span class="help-block m-b-none">请输入您注册时所填的E-mail</span>
  93. </div>
  94. </div>
  95. <div class="form-group">
  96. <label class="col-sm-3 control-label">密码:</label>
  97. <div class="col-sm-8">
  98. <input type="password" placeholder="密码" class="form-control">
  99. </div>
  100. </div>
  101. <div class="form-group">
  102. <div class="col-sm-offset-3 col-sm-8">
  103. <button class="btn btn-sm btn-white" type="submit">登 录</button>
  104. </div>
  105. </div>
  106. </form>
  107. </div>
  108. </div>
  109. </div>
  110. </div>
  111. <div class="row">
  112. <div class="col-sm-8">
  113. <div class="ibox float-e-margins">
  114. <div class="ibox-title">
  115. <h5>内联表单</h5>
  116. <div class="ibox-tools">
  117. <a class="collapse-link">
  118. <i class="fa fa-chevron-up"></i>
  119. </a>
  120. <a class="dropdown-toggle" data-toggle="dropdown" href="#">
  121. <i class="fa fa-wrench"></i>
  122. </a>
  123. <ul class="dropdown-menu dropdown-user">
  124. <li><a href="#">选项1</a>
  125. </li>
  126. <li><a href="#">选项2</a>
  127. </li>
  128. </ul>
  129. <a class="close-link">
  130. <i class="fa fa-times"></i>
  131. </a>
  132. </div>
  133. </div>
  134. <div class="ibox-content">
  135. <form role="form" class="form-inline">
  136. <div class="form-group">
  137. <label for="exampleInputEmail2" class="sr-only">用户名</label>
  138. <input type="email" placeholder="请输入用户名" id="exampleInputEmail2" class="form-control">
  139. </div>
  140. <div class="form-group">
  141. <label for="exampleInputPassword2" class="sr-only">密码</label>
  142. <input type="password" placeholder="请输入密码" id="exampleInputPassword2" class="form-control">
  143. </div>
  144. <div class="checkbox m-l m-r-xs">
  145. <label>
  146. <input type="checkbox"><i></i> 自动登录</label>
  147. </div>
  148. <button class="btn btn-white" type="submit">登录</button>
  149. </form>
  150. </div>
  151. </div>
  152. </div>
  153. <div class="col-sm-4">
  154. <div class="ibox float-e-margins">
  155. <div class="ibox-title">
  156. <h5>弹出表单 <small>弹出框登录示例</small></h5>
  157. <div class="ibox-tools">
  158. <a class="collapse-link">
  159. <i class="fa fa-chevron-up"></i>
  160. </a>
  161. <a class="dropdown-toggle" data-toggle="dropdown" href="#">
  162. <i class="fa fa-wrench"></i>
  163. </a>
  164. <ul class="dropdown-menu dropdown-user">
  165. <li><a href="#">选项1</a>
  166. </li>
  167. <li><a href="#">选项2</a>
  168. </li>
  169. </ul>
  170. <a class="close-link">
  171. <i class="fa fa-times"></i>
  172. </a>
  173. </div>
  174. </div>
  175. <div class="ibox-content">
  176. <div class="text-center">
  177. <a data-toggle="modal" class="btn btn-primary" href="#modal-form">打开登录窗口</a>
  178. </div>
  179. </div>
  180. </div>
  181. </div>
  182. </div>
  183. <div class="row">
  184. <div class="col-sm-12">
  185. <div class="ibox float-e-margins">
  186. <div class="ibox-title">
  187. <h5>所有表单元素 <small>包括自定义样式的复选和单选按钮</small></h5>
  188. <div class="ibox-tools">
  189. <a class="collapse-link">
  190. <i class="fa fa-chevron-up"></i>
  191. </a>
  192. <a class="dropdown-toggle" data-toggle="dropdown" href="#">
  193. <i class="fa fa-wrench"></i>
  194. </a>
  195. <ul class="dropdown-menu dropdown-user">
  196. <li><a href="#">选项1</a>
  197. </li>
  198. <li><a href="#">选项2</a>
  199. </li>
  200. </ul>
  201. <a class="close-link">
  202. <i class="fa fa-times"></i>
  203. </a>
  204. </div>
  205. </div>
  206. <div class="ibox-content">
  207. <form method="get" class="form-horizontal">
  208. <div class="form-group">
  209. <label class="col-sm-2 control-label">普通</label>
  210. <div class="col-sm-10">
  211. <input type="text" class="form-control">
  212. </div>
  213. </div>
  214. <div class="hr-line-dashed"></div>
  215. <div class="form-group">
  216. <label class="col-sm-2 control-label">带说明信息</label>
  217. <div class="col-sm-10">
  218. <input type="text" class="form-control"> <span class="help-block m-b-none">帮助文本,可能会超过一行,以块级元素显示</span>
  219. </div>
  220. </div>
  221. <div class="hr-line-dashed"></div>
  222. <div class="form-group">
  223. <label class="col-sm-2 control-label">密码</label>
  224. <div class="col-sm-10">
  225. <input type="password" class="form-control" name="password">
  226. </div>
  227. </div>
  228. <div class="hr-line-dashed"></div>
  229. <div class="form-group">
  230. <label class="col-sm-2 control-label">提示</label>
  231. <div class="col-sm-10">
  232. <input type="text" placeholder="提示信息" class="form-control">
  233. </div>
  234. </div>
  235. <div class="hr-line-dashed"></div>
  236. <div class="form-group">
  237. <label class="col-sm-2 control-label">禁用</label>
  238. <div class="col-sm-10">
  239. <input type="text" disabled="" placeholder="已被禁用" class="form-control">
  240. </div>
  241. </div>
  242. <div class="hr-line-dashed"></div>
  243. <div class="form-group">
  244. <label class="col-sm-2 control-label">静态控制</label>
  245. <div class="col-sm-10">
  246. <p class="form-control-static">ruoyi.vip</p>
  247. </div>
  248. </div>
  249. <div class="hr-line-dashed"></div>
  250. <div class="form-group">
  251. <label class="col-sm-2 control-label">复选框&amp;单选框
  252. <br/>
  253. <small class="text-navy">普通Bootstrap元素</small>
  254. </label>
  255. <div class="col-sm-10">
  256. <div class="checkbox">
  257. <label>
  258. <input type="checkbox" value="">选项1</label>
  259. </div>
  260. <div class="radio">
  261. <label>
  262. <input type="radio" checked="" value="option1" id="optionsRadios1" name="optionsRadios">选项1</label>
  263. </div>
  264. <div class="radio">
  265. <label>
  266. <input type="radio" value="option2" id="optionsRadios2" name="optionsRadios">选项2</label>
  267. </div>
  268. </div>
  269. </div>
  270. <div class="hr-line-dashed"></div>
  271. <div class="form-group">
  272. <label class="col-sm-2 control-label">内联复选框</label>
  273. <div class="col-sm-10">
  274. <label class="checkbox-inline">
  275. <input type="checkbox" value="option1" id="inlineCheckbox1">a</label>
  276. <label class="checkbox-inline">
  277. <input type="checkbox" value="option2" id="inlineCheckbox2">b</label>
  278. <label class="checkbox-inline">
  279. <input type="checkbox" value="option3" id="inlineCheckbox3">c</label>
  280. </div>
  281. </div>
  282. <div class="hr-line-dashed"></div>
  283. <div class="form-group">
  284. <label class="col-sm-2 control-label">复选框&amp;单选框
  285. <br/><small class="text-navy">自定义样式</small>
  286. </label>
  287. <div class="col-sm-10">
  288. <div class="checkbox check-box">
  289. <label>
  290. <input type="checkbox" value=""> <i></i> 选项1</label>
  291. </div>
  292. <div class="checkbox check-box">
  293. <label>
  294. <input type="checkbox" value="" checked=""> <i></i> 选项2(选中)</label>
  295. </div>
  296. <div class="checkbox check-box">
  297. <label>
  298. <input type="checkbox" value="" disabled="" checked=""> <i></i> 选项3(选中并禁用)</label>
  299. </div>
  300. <div class="checkbox check-box">
  301. <label>
  302. <input type="checkbox" value="" disabled=""> <i></i> 选项4(禁用)</label>
  303. </div>
  304. <div class="radio check-box">
  305. <label>
  306. <input type="radio" value="option1" name="a"> <i></i> 选项1</label>
  307. </div>
  308. <div class="radio check-box">
  309. <label>
  310. <input type="radio" checked="" value="option2" name="a"> <i></i> 选项2(选中)</label>
  311. </div>
  312. <div class="radio check-box">
  313. <label>
  314. <input type="radio" disabled="" checked="" value="option2"> <i></i> 选项3(选中并禁用)</label>
  315. </div>
  316. <div class="radio check-box">
  317. <label>
  318. <input type="radio" disabled="" name="a"> <i></i> 选项4(禁用)</label>
  319. </div>
  320. </div>
  321. </div>
  322. <div class="hr-line-dashed"></div>
  323. <div class="form-group">
  324. <label class="col-sm-2 control-label">内联复选框</label>
  325. <div class="col-sm-10">
  326. <label class="checkbox-inline check-box">
  327. <input type="checkbox" value="option1">a</label>
  328. <label class="checkbox-inline check-box">
  329. <input type="checkbox" value="option2">b</label>
  330. <label class="checkbox-inline check-box">
  331. <input type="checkbox" value="option3">c</label>
  332. </div>
  333. </div>
  334. <div class="hr-line-dashed"></div>
  335. <div class="form-group">
  336. <label class="col-sm-2 control-label">Select</label>
  337. <div class="col-sm-10">
  338. <select class="form-control m-b" name="account">
  339. <option>选项 1</option>
  340. <option>选项 2</option>
  341. <option>选项 3</option>
  342. <option>选项 4</option>
  343. </select>
  344. <div class="col-sm-4 m-l-n">
  345. <select class="form-control" multiple="">
  346. <option>选项 1</option>
  347. <option>选项 2</option>
  348. <option>选项 3</option>
  349. <option>选项 4</option>
  350. </select>
  351. </div>
  352. </div>
  353. </div>
  354. <div class="hr-line-dashed"></div>
  355. <div class="form-group has-success">
  356. <label class="col-sm-2 control-label">验证通过</label>
  357. <div class="col-sm-10">
  358. <input type="text" class="form-control">
  359. </div>
  360. </div>
  361. <div class="hr-line-dashed"></div>
  362. <div class="form-group has-warning">
  363. <label class="col-sm-2 control-label">未填写</label>
  364. <div class="col-sm-10">
  365. <input type="text" class="form-control">
  366. </div>
  367. </div>
  368. <div class="hr-line-dashed"></div>
  369. <div class="form-group has-error">
  370. <label class="col-sm-2 control-label">验证未通过</label>
  371. <div class="col-sm-10">
  372. <input type="text" class="form-control">
  373. </div>
  374. </div>
  375. <div class="hr-line-dashed"></div>
  376. <div class="form-group">
  377. <label class="col-sm-2 control-label">自定义尺寸</label>
  378. <div class="col-sm-10">
  379. <input type="text" placeholder=".input-lg" class="form-control input-lg m-b">
  380. <input type="text" placeholder="Default input" class="form-control m-b">
  381. <input type="text" placeholder=".input-sm" class="form-control input-sm">
  382. </div>
  383. </div>
  384. <div class="hr-line-dashed"></div>
  385. <div class="form-group">
  386. <label class="col-sm-2 control-label">列尺寸</label>
  387. <div class="col-sm-10">
  388. <div class="row">
  389. <div class="col-md-2">
  390. <input type="text" placeholder=".col-md-2" class="form-control">
  391. </div>
  392. <div class="col-md-3">
  393. <input type="text" placeholder=".col-md-3" class="form-control">
  394. </div>
  395. <div class="col-md-4">
  396. <input type="text" placeholder=".col-md-4" class="form-control">
  397. </div>
  398. </div>
  399. </div>
  400. </div>
  401. <div class="hr-line-dashed"></div>
  402. <div class="form-group">
  403. <label class="col-sm-2 control-label">文本框组</label>
  404. <div class="col-sm-10">
  405. <div class="input-group m-b"><span class="input-group-addon">@</span>
  406. <input type="text" placeholder="用户名" class="form-control">
  407. </div>
  408. <div class="input-group m-b">
  409. <input type="text" class="form-control"> <span class="input-group-addon">.00</span>
  410. </div>
  411. <div class="input-group m-b"><span class="input-group-addon">&yen;</span>
  412. <input type="text" class="form-control"> <span class="input-group-addon">.00</span>
  413. </div>
  414. <div class="input-group m-b"><span class="input-group-addon"> <input type="checkbox"> </span>
  415. <input type="text" class="form-control">
  416. </div>
  417. <div class="input-group"><span class="input-group-addon"> <input type="radio"> </span>
  418. <input type="text" class="form-control">
  419. </div>
  420. </div>
  421. </div>
  422. <div class="hr-line-dashed"></div>
  423. <div class="form-group">
  424. <label class="col-sm-2 control-label">按钮插件</label>
  425. <div class="col-sm-10">
  426. <div class="input-group m-b"><span class="input-group-btn">
  427. <button type="button" class="btn btn-primary">搜</button> </span>
  428. <input type="text" class="form-control">
  429. </div>
  430. <div class="input-group">
  431. <input type="text" class="form-control"> <span class="input-group-btn"> <button type="button" class="btn btn-primary">搜索
  432. </button> </span>
  433. </div>
  434. </div>
  435. </div>
  436. <div class="hr-line-dashed"></div>
  437. <div class="form-group">
  438. <label class="col-sm-2 control-label">带下拉框</label>
  439. <div class="col-sm-10">
  440. <div class="input-group m-b">
  441. <div class="input-group-btn">
  442. <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">操作 <span class="caret"></span>
  443. </button>
  444. <ul class="dropdown-menu">
  445. <li><a href="#">选项1</a>
  446. </li>
  447. <li><a href="#">选项2</a>
  448. </li>
  449. <li><a href="#">选项3</a>
  450. </li>
  451. <li class="divider"></li>
  452. <li><a href="#">选项4</a>
  453. </li>
  454. </ul>
  455. </div>
  456. <input type="text" class="form-control">
  457. </div>
  458. <div class="input-group">
  459. <input type="text" class="form-control">
  460. <div class="input-group-btn">
  461. <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">操作 <span class="caret"></span>
  462. </button>
  463. <ul class="dropdown-menu pull-right">
  464. <li><a href="#">选项1</a>
  465. </li>
  466. <li><a href="#">选项2</a>
  467. </li>
  468. <li><a href="#">选项3</a>
  469. </li>
  470. <li class="divider"></li>
  471. <li><a href="#">选项4</a>
  472. </li>
  473. </ul>
  474. </div>
  475. </div>
  476. </div>
  477. </div>
  478. <div class="hr-line-dashed"></div>
  479. <div class="form-group">
  480. <label class="col-sm-2 control-label">分段</label>
  481. <div class="col-sm-10">
  482. <div class="input-group m-b">
  483. <div class="input-group-btn">
  484. <button tabindex="-1" class="btn btn-white" type="button">操作</button>
  485. <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button"><span class="caret"></span>
  486. </button>
  487. <ul class="dropdown-menu">
  488. <li><a href="#">选项1</a>
  489. </li>
  490. <li><a href="#">选项2</a>
  491. </li>
  492. <li><a href="#">选项3</a>
  493. </li>
  494. <li class="divider"></li>
  495. <li><a href="#">选项4</a>
  496. </li>
  497. </ul>
  498. </div>
  499. <input type="text" class="form-control">
  500. </div>
  501. <div class="input-group">
  502. <input type="text" class="form-control">
  503. <div class="input-group-btn">
  504. <button tabindex="-1" class="btn btn-white" type="button">操作</button>
  505. <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button"><span class="caret"></span>
  506. </button>
  507. <ul class="dropdown-menu pull-right">
  508. 分段
  509. </ul>
  510. </div>
  511. </div>
  512. </div>
  513. </div>
  514. <div class="hr-line-dashed"></div>
  515. <div class="form-group">
  516. <div class="col-sm-4 col-sm-offset-2">
  517. <button class="btn btn-primary" type="submit">保存内容</button>
  518. <button class="btn btn-white" type="submit">取消</button>
  519. </div>
  520. </div>
  521. </form>
  522. </div>
  523. </div>
  524. </div>
  525. </div>
  526. </div>
  527. <div id="modal-form" class="modal fade" aria-hidden="true">
  528. <div class="modal-dialog">
  529. <div class="modal-content">
  530. <div class="modal-body">
  531. <div class="row">
  532. <div class="col-sm-6 b-r">
  533. <h3 class="m-t-none m-b">登录</h3>
  534. <p>欢迎登录本站(⊙o⊙)</p>
  535. <form role="form">
  536. <div class="form-group">
  537. <label>用户名:</label>
  538. <input type="email" placeholder="请输入用户名" class="form-control">
  539. </div>
  540. <div class="form-group">
  541. <label>密码:</label>
  542. <input type="password" placeholder="请输入密码" class="form-control">
  543. </div>
  544. <div>
  545. <button class="btn btn-sm btn-primary pull-right m-t-n-xs" type="submit"><strong>登录</strong>
  546. </button>
  547. <label>
  548. <input type="checkbox" class="i-checks">自动登录</label>
  549. </div>
  550. </form>
  551. </div>
  552. <div class="col-sm-6">
  553. <h4>还不是会员?</h4>
  554. <p>您可以注册一个账户</p>
  555. <p class="text-center">
  556. <a href="#"><i class="fa fa-sign-in big-icon"></i></a>
  557. </p>
  558. </div>
  559. </div>
  560. </div>
  561. </div>
  562. </div>
  563. </div>
  564. <th:block th:include="include :: footer" />
  565. </body>
  566. </html>