add.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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="os" id="os" 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" id="chargeBlockIp">
  18. <label class="col-sm-2 control-label">APP版本:</label>
  19. <div class="col-sm-10">
  20. <input id="appVersion" name="appVersion" class="form-control" type="text" placeholder="请输入APP版本"/>
  21. </div>
  22. </div>
  23. </form>
  24. </div>
  25. <th:block th:include="include :: footer" />
  26. <th:block th:include="include :: summernote-js" />
  27. <script type="text/javascript">
  28. var prefix = ctx + "system/key";
  29. $("#form-notice-add").validate({
  30. focusCleanup: true
  31. });
  32. function submitHandler() {
  33. if ($.validate.form()) {
  34. $.operate.save(prefix + "/add", $('#form-notice-add').serialize());
  35. }
  36. }
  37. </script>
  38. </body>
  39. </html>