add.html 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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" id="chargeErBanNo">
  10. <label class="col-sm-2 control-label">卿卿号:</label>
  11. <div class="col-sm-10">
  12. <input name="uid" id="uid" class="form-control" type="text" placeholder="请输入卿卿号"/>
  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="seqNo" name="seqNo" class="form-control" type="text" placeholder="请输入排列序号" required/>
  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. <select name="viewType" id="viewType" class="form-control m-b" th:with="type=${@dict.getType('recomm_view_position')}">
  25. <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
  26. </select>
  27. </div>
  28. </div>
  29. <div class="form-group select-time" >
  30. <label class="col-sm-2 control-label">开始时间:</label>
  31. <div class="col-sm-10">
  32. <input id="startDate" name="startValidTime" class="form-control time-input" type="text" placeholder="请输入开始时间"/>
  33. </div>
  34. </div>
  35. <div class="form-group select-time" >
  36. <label class="col-sm-2 control-label">结束时间:</label>
  37. <div class="col-sm-10">
  38. <input id="endDate" name="endValidTime" class="form-control time-input" type="text" placeholder="请输入结束时间"/>
  39. </div>
  40. </div>
  41. </form>
  42. </div>
  43. <th:block th:include="include :: footer" />
  44. <th:block th:include="include :: summernote-js" />
  45. <script type="text/javascript">
  46. var prefix = ctx + "operation/home/recomm";
  47. $("#form-notice-add").validate({
  48. focusCleanup: true
  49. });
  50. function submitHandler() {
  51. if ($.validate.form()) {
  52. $.operate.save(prefix + "/add", $('#form-notice-add').serialize());
  53. }
  54. }
  55. </script>
  56. </body>
  57. </html>