add.html 2.5 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-add">
  9. <div class="form-group">
  10. <label class="col-sm-2 control-label">系统:</label>
  11. <div class="col-sm-10">
  12. <select name="system" id="system" class="form-control m-b" th:with="type=${@dict.getType('os_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" class="form-control m-b" th:with="type=${channelList}">
  21. <option th:each="dict : ${type}" th:text="${dict}"
  22. th:value="${dict}"></option>
  23. </select>
  24. </div>
  25. </div>
  26. <div class="form-group" >
  27. <label class="col-sm-2 control-label">版本号:</label>
  28. <div class="col-sm-10">
  29. <input id="versions" name="versions" class="form-control" type="text" required/>
  30. </div>
  31. </div>
  32. <div class="form-group" >
  33. <label class="col-sm-2 control-label">审核内容:</label>
  34. <div class="col-sm-10">
  35. <input id="tagName" name="tagName" class="form-control" type="text" required/>
  36. </div>
  37. </div>
  38. <div class="form-group" >
  39. <label class="col-sm-2 control-label">充值金额:</label>
  40. <div class="col-sm-10">
  41. <input id="rechargeAmount" name="rechargeAmount" class="form-control" type="number" required />
  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="status" id="status" class="form-control m-b" th:with="type=${@dict.getType('common_type')}">
  48. <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
  49. </select>
  50. </div>
  51. </div>
  52. </form>
  53. </div>
  54. <th:block th:include="include :: footer" />
  55. <th:block th:include="include :: summernote-js" />
  56. <script type="text/javascript">
  57. var prefix = ctx + "operation/channel/config";
  58. $("#form-notice-add").validate({
  59. focusCleanup: true
  60. });
  61. function submitHandler() {
  62. if ($.validate.form()) {
  63. $.operate.save(prefix + "/add", $('#form-notice-add').serialize());
  64. }
  65. }
  66. </script>
  67. </body>
  68. </html>