add.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!DOCTYPE html>
  2. <html lang="zh" xmlns:th="http://www.thymeleaf.org" >
  3. <head>
  4. <th:block th:include="include :: header('新增靓号')" />
  5. </head>
  6. <body class="white-bg">
  7. <div class="wrapper wrapper-content animated fadeInRight ibox-content">
  8. <form class="form-horizontal m" id="form-notice-add">
  9. <div class="form-group">
  10. <label class="col-sm-2 control-label">靓号:</label>
  11. <div class="col-sm-10">
  12. <input id="prettyErbanNo" name="prettyErbanNo" class="form-control" type="text" placeholder="请输入靓号" required/>
  13. </div>
  14. </div>
  15. <div class="form-group">
  16. <label class="col-sm-2 control-label">使用卿卿号:</label>
  17. <div class="col-sm-10">
  18. <input id="useErbanNo" name="useErbanNo" class="form-control" type="text" placeholder="请输入使用人卿卿号" />
  19. </div>
  20. </div>
  21. <div class="form-group">
  22. <label class="col-sm-2 control-label">排序:</label>
  23. <div class="col-sm-10">
  24. <input id="seq" name="seq" class="form-control" type="text" placeholder="请输入排序" required/>
  25. </div>
  26. </div>
  27. </form>
  28. </div>
  29. <th:block th:include="include :: footer" />
  30. <th:block th:include="include :: summernote-js" />
  31. <script type="text/javascript">
  32. var prefix = ctx + "users/pretty";
  33. $("#form-notice-add").validate({
  34. focusCleanup: true
  35. });
  36. function submitHandler() {
  37. if ($.validate.form()) {
  38. $.operate.save(prefix + "/add", $('#form-notice-add').serialize());
  39. }
  40. }
  41. </script>
  42. </body>
  43. </html>