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="${reviewConfig}">
  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. <input id="system" name="system" class="form-control" type="hidden" th:field="*{system}"/>
  14. <select name="system1" id="system1" class="form-control m-b" th:with="type=${@dict.getType('os_type')}" disabled>
  15. <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{system}" ></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. <input id="channel" name="channel" class="form-control" type="text" th:field="*{channel}" readonly/>
  23. </div>
  24. </div>
  25. <div class="form-group" >
  26. <label class="col-sm-2 control-label">版本号:</label>
  27. <div class="col-sm-10">
  28. <input id="versions" name="versions" class="form-control" type="text" th:field="*{versions}" 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="tagName" name="tagName" class="form-control" type="text" th:field="*{tagName}" 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="rechargeAmount" name="rechargeAmount" class="form-control" type="number" th:field="*{rechargeAmount}" 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. <select name="status" id="status" class="form-control m-b" th:with="type=${@dict.getType('common_type')}">
  47. <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{status}"></option>
  48. </select>
  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/config";
  57. $("#form-notice-add").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>