add.html 2.1 KB

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