edit.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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-dict-edit" th:object="${weekStarGift}">
  9. <input name="id" type="hidden" th:field="*{id}" />
  10. <div class="form-group">
  11. <label for="giftId" class="col-sm-2 control-label">礼物:</label>
  12. <div class="col-sm-10" style="margin-bottom: 20px;">
  13. <select name="giftId" id="giftId" th:with="type=${gifts}">
  14. <option th:each="gift : ${type}" th:text="${gift.giftName}" th:value="${gift.giftId}" th:field="*{giftId}"></option>
  15. </select>
  16. </div>
  17. </div>
  18. <div class="form-group">
  19. <label class="col-sm-2 control-label">排序:</label>
  20. <div class="col-sm-10">
  21. <input id="seq" name="seq" class="form-control" type="number" min="1" placeholder="请输入排序" th:field="*{seq}"/>
  22. </div>
  23. </div>
  24. </form>
  25. </div>
  26. <th:block th:include="include :: footer" />
  27. <script type="text/javascript">
  28. var prefix = ctx + "activity/zxb";
  29. $("#form-dict-edit").validate({
  30. focusCleanup: true
  31. });
  32. function submitHandler() {
  33. if ($.validate.form()) {
  34. $.operate.save(prefix + "/edit", $('#form-dict-edit').serialize());
  35. }
  36. }
  37. </script>
  38. </body>
  39. </html>