12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <!DOCTYPE html>
- <html lang="zh" xmlns:th="http://www.thymeleaf.org" >
- <head>
- <th:block th:include="include :: header('修改周星礼物信息')" />
- </head>
- <body class="white-bg">
- <div class="wrapper wrapper-content animated fadeInRight ibox-content">
- <form class="form-horizontal m" id="form-dict-edit" th:object="${weekStarGift}">
- <input name="id" type="hidden" th:field="*{id}" />
- <div class="form-group">
- <label for="giftId" class="col-sm-2 control-label">礼物:</label>
- <div class="col-sm-10" style="margin-bottom: 20px;">
- <select name="giftId" id="giftId" th:with="type=${gifts}">
- <option th:each="gift : ${type}" th:text="${gift.giftName}" th:value="${gift.giftId}" th:field="*{giftId}"></option>
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">排序:</label>
- <div class="col-sm-10">
- <input id="seq" name="seq" class="form-control" type="number" min="1" placeholder="请输入排序" th:field="*{seq}"/>
- </div>
- </div>
- </form>
- </div>
- <th:block th:include="include :: footer" />
- <script type="text/javascript">
- var prefix = ctx + "activity/zxb";
-
- $("#form-dict-edit").validate({
- focusCleanup: true
- });
-
- function submitHandler() {
- if ($.validate.form()) {
- $.operate.save(prefix + "/edit", $('#form-dict-edit').serialize());
- }
- }
- </script>
- </body>
- </html>
|