addRooms.html 1.3 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-notice-add" th:object="${channelReview}">
  9. <input name="id" type="hidden" th:field="*{id}" />
  10. <div class="form-group">
  11. <label class="col-sm-2 control-label">渠道:</label>
  12. <div class="col-sm-10">
  13. <input id="channel" name="channel" class="form-control" type="text" readonly th:field="*{channel}"/>
  14. </div>
  15. </div>
  16. <div class="form-group">
  17. <label class="col-sm-2 control-label">房主UID:</label>
  18. <div class="col-sm-10">
  19. <input id="uids" name="uids" class="form-control" type="text" />
  20. </div>
  21. </div>
  22. </form>
  23. </div>
  24. <th:block th:include="include :: footer" />
  25. <th:block th:include="include :: summernote-js" />
  26. <script type="text/javascript">
  27. var prefix = ctx + "operation/channel/review";
  28. $("#form-notice-add").validate({
  29. focusCleanup: true
  30. });
  31. function submitHandler() {
  32. if ($.validate.form()) {
  33. $.operate.save(prefix + "/addRooms", $('#form-notice-add').serialize());
  34. }
  35. }
  36. </script>
  37. </body>
  38. </html>