banned_punish.html 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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" th:object="${users}">
  9. <input type="hidden" name="id" th:value="${id}"/>
  10. <div class="form-group" id="chargeErBanNo">
  11. <label class="col-sm-2 control-label">卿卿号:</label>
  12. <div class="col-sm-10">
  13. <input id="erbanNo" name="erbanNo" readonly="readonly" class="form-control" th:field="*{erbanNo}" type="text" placeholder="请输入禁言卿卿号"/>
  14. </div>
  15. </div>
  16. <div class="form-group">
  17. <label class="col-sm-2 control-label">封禁原因:</label>
  18. <div class="col-sm-10">
  19. <input id="bannedDesc" name="bannedDesc" class="form-control" type="text" placeholder="请输入禁言原因" required/>
  20. </div>
  21. </div>
  22. <div class="form-group">
  23. <label class="col-sm-2 control-label">封禁类型:</label>
  24. <div class="col-sm-10">
  25. <select name="bannedType" id="bannedType" class="form-control m-b" th:with="type=${@dict.getType('banned_type')}">
  26. <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
  27. </select>
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <label class="col-sm-2 control-label">封禁时间:</label>
  32. <div class="col-sm-10">
  33. <select name="blockTime" id="blockTime" class="form-control m-b" th:with="type=${@dict.getType('banned_time')}">
  34. <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
  35. </select>
  36. </div>
  37. </div>
  38. </form>
  39. </div>
  40. <th:block th:include="include :: footer" />
  41. <th:block th:include="include :: summernote-js" />
  42. <script type="text/javascript">
  43. var prefix = ctx + "review/report";
  44. $("#form-notice-add").validate({
  45. focusCleanup: true
  46. });
  47. function submitHandler() {
  48. if ($.validate.form()) {
  49. $.operate.save(prefix + "/banned/punish", $('#form-notice-add').serialize());
  50. }
  51. }
  52. </script>
  53. </body>
  54. </html>