1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <!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-notice-add">
- <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}"></option>
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">周星类型:</label>
- <div class="col-sm-10">
- <select name="type" id="type" class="form-control m-b" th:with="type=${@dict.getType('week_star_gift_type')}">
- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></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="请输入排序" required/>
- </div>
- </div>
- </form>
- </div>
- <th:block th:include="include :: footer" />
- <th:block th:include="include :: summernote-js" />
- <script type="text/javascript">
- var prefix = ctx + "activity/zxb";
- $("#form-notice-add").validate({
- focusCleanup: true
- });
- function submitHandler() {
- if ($.validate.form()) {
- $.operate.save(prefix + "/add", $('#form-notice-add').serialize());
- }
- }
- </script>
- </body>
- </html>
|