edit.html 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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="${appSecret}">
  9. <input name="id" type="hidden" th:field="*{signKey}" />
  10. <div class="form-group">
  11. <label class="col-sm-2 control-label">系统:</label>
  12. <div class="col-sm-10">
  13. <select name="os" id="os" class="form-control m-b" th:with="type=${@dict.getType('os_type')}">
  14. <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{os}"></option>
  15. </select>
  16. </div>
  17. </div>
  18. <div class="form-group">
  19. <label class="col-sm-2 control-label">APP版本:</label>
  20. <div class="col-sm-10">
  21. <input class="form-control" type="text" name="appVersion" id="appVersion" th:field="*{appVersion}"/>
  22. </div>
  23. </div>
  24. </form>
  25. </div>
  26. <th:block th:include="include :: footer" />
  27. <script type="text/javascript">
  28. var prefix = ctx + "system/key";
  29. $("#form-dict-edit").validate({
  30. focusCleanup: true
  31. });
  32. function submitHandler() {
  33. if ($.validate.form()) {
  34. $.operate.save(prefix + "/edit", $('#form-dict-edit').serialize());
  35. }
  36. }
  37. </script>
  38. </body>
  39. </html>