12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <!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">礼物1:</label>
- <div class="col-sm-3">
- <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>
- <label class="col-sm-2 control-label">数量:</label>
- <div class="col-sm-3">
- <input name="num" class="form-control" type="text" placeholder="请输入数量" required/>
- </div>
- </div>
- <div class="form-group">
- <label for="giftId2" class="col-sm-2 control-label">礼物2:</label>
- <div class="col-sm-3">
- <select name="giftId" id="giftId2" th:with="type=${gifts}">
- <option th:each="gift : ${type}" th:text="${gift.giftName}" th:value="${gift.giftId}"></option>
- </select>
- </div>
- <label class="col-sm-2 control-label">数量:</label>
- <div class="col-sm-3">
- <input name="num" class="form-control" type="text" placeholder="请输入数量" required/>
- </div>
- </div>
- <div class="form-group">
- <label for="giftId3" class="col-sm-2 control-label">礼物1:</label>
- <div class="col-sm-3">
- <select name="giftId" id="giftId3" th:with="type=${gifts}">
- <option th:each="gift : ${type}" th:text="${gift.giftName}" th:value="${gift.giftId}"></option>
- </select>
- </div>
- <label class="col-sm-2 control-label">数量:</label>
- <div class="col-sm-3">
- <input name="num" class="form-control" type="text" placeholder="请输入数量" required/>
- </div>
- </div>
- <div class="form-group">
- <label for="probability" class="col-sm-2 control-label">概率:</label>
- <div class="col-sm-10">
- <select name="probability" id="probability" class="form-control m-b" th:with="type=${@dict.getType('probability_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 name="grade" 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 + "room/mora/reward";
- $("#form-notice-add").validate({
- focusCleanup: true
- });
- function submitHandler() {
- if ($.validate.form()) {
- $.operate.save(prefix + "/add", $('#form-notice-add').serialize());
- }
- }
- </script>
- </body>
- </html>
|