add.html 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. <select name="channel" id="channel" class="form-control m-b" th:with="type=${channelList}">
  13. <option th:each="dict : ${type}" th:text="${dict}"
  14. th:value="${dict}"></option>
  15. </select>
  16. </div>
  17. </div>
  18. <div class="form-group">
  19. <label class="col-sm-2 control-label">投放审核:</label>
  20. <div class="col-sm-10">
  21. <select name="auditOption" id="auditOption" class="form-control m-b" th:with="type=${@dict.getType('is_use_type')}">
  22. <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
  23. </select>
  24. </div>
  25. </div>
  26. <div class="form-group" >
  27. <label class="col-sm-2 control-label">审核版本:</label>
  28. <div class="col-sm-10">
  29. <input id="auditVersion" name="auditVersion" class="form-control" type="text" required/>
  30. </div>
  31. </div>
  32. <div class="form-group" >
  33. <label class="col-sm-2 control-label">审核等级:</label>
  34. <div class="col-sm-10">
  35. <input id="leftLevel" name="leftLevel" class="form-control" type="number" required/>
  36. </div>
  37. </div>
  38. <div class="form-group select-time" >
  39. <label class="col-sm-2 control-label">开始时间:</label>
  40. <div class="col-sm-10">
  41. <input id="time" name="beginTime" class="form-control time-input" type="text" placeholder="请输入开始时间" required/>
  42. </div>
  43. </div>
  44. <div class="form-group select-time" >
  45. <label class="col-sm-2 control-label">结束时间:</label>
  46. <div class="col-sm-10">
  47. <input id="time1" name="endTime" class="form-control time-input" type="text" placeholder="请输入结束时间" required/>
  48. </div>
  49. </div>
  50. </form>
  51. </div>
  52. <th:block th:include="include :: footer" />
  53. <th:block th:include="include :: summernote-js" />
  54. <script type="text/javascript">
  55. var prefix = ctx + "operation/channel/review";
  56. $("#form-notice-add").validate({
  57. focusCleanup: true
  58. });
  59. function submitHandler() {
  60. if ($.validate.form()) {
  61. $.operate.save(prefix + "/add", $('#form-notice-add').serialize());
  62. }
  63. }
  64. </script>
  65. </body>
  66. </html>