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="type" id="type" class="form-control m-b" th:with="type=${@dict.getType('sensitive_word_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. <input id="sensitiveWords" name="sensitiveWords" class="form-control" type="text" required/>
  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 + "operation/sensitive/word";
  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>