add.html 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 for="type" 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('ding_talks_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">webHook:</label>
  19. <div class="col-sm-10">
  20. <input id="url" name="url" class="form-control" type="text" placeholder="请输入webHook地址" required/>
  21. </div>
  22. </div>
  23. <div class="form-group">
  24. <label class="col-sm-2 control-label">联系人(多个以英文逗号分割):</label>
  25. <div class="col-sm-10">
  26. <input id="mobiles" name="mobiles" class="form-control" type="text" placeholder="请输入联系人" />
  27. </div>
  28. </div>
  29. <div class="form-group">
  30. <label class="col-sm-2 control-label">是否@所有人:</label>
  31. <div class="col-sm-3">
  32. <div class="radio-box">
  33. <input type="radio" id="atAll" name="atAll" value="1" >
  34. <label for="atAll">是</label>
  35. </div>
  36. <div class="radio-box">
  37. <input type="radio" id="atAll2" name="atAll" value="0" checked>
  38. <label for="atAll2">否</label>
  39. </div>
  40. </div>
  41. </div>
  42. </form>
  43. </div>
  44. <th:block th:include="include :: footer" />
  45. <th:block th:include="include :: summernote-js" />
  46. <script type="text/javascript">
  47. var prefix = ctx + "system/dingTalks";
  48. $("#form-notice-add").validate({
  49. focusCleanup: true
  50. });
  51. function submitHandler() {
  52. if ($.validate.form()) {
  53. $.operate.save(prefix + "/add", $('#form-notice-add').serialize());
  54. }
  55. }
  56. </script>
  57. </body>
  58. </html>