add.html 1.8 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-process-add">
  9. <div class="form-group">
  10. <label class="col-sm-3 control-label">操作类型:</label>
  11. <div class="col-sm-8">
  12. <select name="processType" class="form-control m-b" th:with="type=${@dict.getType('sync_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-3 control-label">操作关键字;MONGO存储时间戳:</label>
  19. <div class="col-sm-8">
  20. <input name="processKey" class="form-control" type="text">
  21. </div>
  22. </div>
  23. <div class="form-group">
  24. <label class="col-sm-3 control-label">操作花费时间:</label>
  25. <div class="col-sm-8">
  26. <input name="costTime" class="form-control" type="text">
  27. </div>
  28. </div>
  29. </form>
  30. </div>
  31. <th:block th:include="include :: footer" />
  32. <script th:inline="javascript">
  33. var prefix = ctx + "out/process"
  34. $("#form-process-add").validate({
  35. focusCleanup: true
  36. });
  37. function submitHandler() {
  38. if ($.validate.form()) {
  39. $.operate.save(prefix + "/add", $('#form-process-add').serialize());
  40. }
  41. }
  42. </script>
  43. </body>
  44. </html>