add.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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="giftId" class="col-sm-2 control-label">礼物:</label>
  11. <div class="col-sm-10" style="margin-bottom: 20px;">
  12. <select name="giftId" id="giftId" th:with="type=${gifts}">
  13. <option th:each="gift : ${type}" th:text="${gift.giftName}" th:value="${gift.giftId}"></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. <select name="type" id="type" class="form-control m-b" th:with="type=${@dict.getType('week_star_gift_type')}">
  21. <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
  22. </select>
  23. </div>
  24. </div>
  25. <div class="form-group">
  26. <label class="col-sm-2 control-label">排序:</label>
  27. <div class="col-sm-10">
  28. <input id="seq" name="seq" class="form-control" type="number" min="1" placeholder="请输入排序" required/>
  29. </div>
  30. </div>
  31. </form>
  32. </div>
  33. <th:block th:include="include :: footer" />
  34. <th:block th:include="include :: summernote-js" />
  35. <script type="text/javascript">
  36. var prefix = ctx + "activity/zxb";
  37. $("#form-notice-add").validate({
  38. focusCleanup: true
  39. });
  40. function submitHandler() {
  41. if ($.validate.form()) {
  42. $.operate.save(prefix + "/add", $('#form-notice-add').serialize());
  43. }
  44. }
  45. </script>
  46. </body>
  47. </html>