add.html 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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">app:</label>
  11. <div class="col-sm-10">
  12. <select name="app" id="app" class="form-control m-b" th:with="type=${@dict.getType('app_type')}">
  13. <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
  14. </select>
  15. </div>
  16. </div>
  17. <div class="form-group">
  18. <label class="col-sm-2 control-label">渠道:</label>
  19. <div class="col-sm-10">
  20. <select name="channel" id="channel" th:with="type=${homeChannelList}">
  21. <option th:each="homeChannel : ${type}" th:text="${homeChannel.name}" th:value="${homeChannel.channel}"></option>
  22. </select>
  23. </div>
  24. </div>
  25. <div class="form-group" id="chargeErBanNo">
  26. <label class="col-sm-2 control-label">投放时间:</label>
  27. <div class="col-sm-10">
  28. <input type="text" class="time-input" id="beginTime" name="putInDate" placeholder="请输入投放时间" required/>
  29. </div>
  30. </div>
  31. <div class="form-group">
  32. <label class="col-sm-2 control-label">投放金额:</label>
  33. <div class="col-sm-10">
  34. <input id="amountInvested" name="amountInvested" class="form-control" type="text" placeholder="请输入投放金额" required/>
  35. </div>
  36. </div>
  37. <div class="form-group">
  38. <label class="col-sm-2 control-label">总下载:</label>
  39. <div class="col-sm-10">
  40. <input id="totalDownload" name="totalDownload" class="form-control" type="text" placeholder="请输入总下载" required/>
  41. </div>
  42. </div>
  43. <div class="form-group">
  44. <label class="col-sm-2 control-label">买量下载:</label>
  45. <div class="col-sm-10">
  46. <input id="purchaseDownload" name="purchaseDownload" class="form-control" type="text" placeholder="请输入买量下载" required/>
  47. </div>
  48. </div>
  49. </form>
  50. </div>
  51. <th:block th:include="include :: footer" />
  52. <th:block th:include="include :: summernote-js" />
  53. <script type="text/javascript">
  54. var prefix = ctx + "marketing/serving/channel";
  55. $("#form-notice-add").validate({
  56. focusCleanup: true
  57. });
  58. function submitHandler() {
  59. if ($.validate.form()) {
  60. $.operate.save(prefix + "/add", $('#form-notice-add').serialize());
  61. }
  62. }
  63. </script>
  64. </body>
  65. </html>