add.html 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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="channel" id="channel" 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="channelName" name="channelName" 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="superiorChannel" id="superiorChannel" th:with="type=${homeChannelList}">
  25. <option value=''>全部</option>
  26. <option th:each="homeChannel : ${type}" th:text="${homeChannel.name}" th:value="${homeChannel.channel}"></option>
  27. </select>
  28. </div>
  29. </div>
  30. <div class="form-group" id="chargeBlockIp">
  31. <label class="col-sm-2 control-label">首页默认大小:</label>
  32. <div class="col-sm-10">
  33. <input id="homeDefault" name="homeDefault" class="form-control" type="text" placeholder="请输入首页默认大小" required/>
  34. </div>
  35. </div>
  36. <div class="form-group">
  37. <label class="col-sm-2 control-label">新老用户:</label>
  38. <div class="col-sm-10">
  39. <select name="isNews" id="isNews" class="form-control m-b" th:with="type=${@dict.getType('is_news_type')}">
  40. <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
  41. </select>
  42. </div>
  43. </div>
  44. <div class="form-group">
  45. <label class="col-sm-2 control-label">是否对外:</label>
  46. <div class="col-sm-10">
  47. <select name="type" id="type" class="form-control m-b" th:with="type=${@dict.getType('is_foreign_type')}">
  48. <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
  49. </select>
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <label class="col-sm-2 control-label">组别:</label>
  54. <div class="col-sm-10">
  55. <select name="groupId" th:with="type=${homeChannelGroupList}">
  56. <option value="0">没有</option>
  57. <option th:each="homeChannelGroup : ${type}" th:text="${homeChannelGroup.groupName}" th:value="${homeChannelGroup.groupId}"></option>
  58. </select>
  59. </div>
  60. </div>
  61. </form>
  62. </div>
  63. <th:block th:include="include :: footer" />
  64. <th:block th:include="include :: summernote-js" />
  65. <script type="text/javascript">
  66. var prefix = ctx + "marketing/channel";
  67. $("#form-notice-add").validate({
  68. focusCleanup: true
  69. });
  70. function submitHandler() {
  71. if ($.validate.form()) {
  72. $.operate.save(prefix + "/add", $('#form-notice-add').serialize());
  73. }
  74. }
  75. </script>
  76. </body>
  77. </html>