edit.html 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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-dict-edit" th:object="${dailyReportChannelPutIn}">
  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}" th:field="*{app}"></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}" th:field="*{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" th:field="*{putInDate}" 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" th:field="*{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" th:field="*{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" th:field="*{purchaseDownload}" class="form-control" type="text" placeholder="请输入买量下载" required/>
  47. </div>
  48. </div>
  49. </form>
  50. </div>
  51. <th:block th:include="include :: footer" />
  52. <script type="text/javascript">
  53. var prefix = ctx + "marketing/serving/channel";
  54. $("#form-dict-edit").validate({
  55. focusCleanup: true
  56. });
  57. function submitHandler() {
  58. if ($.validate.form()) {
  59. $.operate.save(prefix + "/edit", $('#form-dict-edit').serialize());
  60. }
  61. }
  62. </script>
  63. </body>
  64. </html>