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