1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <!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="${dingTalksConfig}">
- <input name="id" type="hidden" th:field="*{id}" />
- <div class="form-group">
- <label for="type" 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('ding_talks_type')}">
- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{type}"></option>
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">webHook:</label>
- <div class="col-sm-10">
- <input id="url" name="url" class="form-control" type="text" placeholder="请输入webHook地址" th:field="*{url}"/>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">联系人(多个以英文逗号分割):</label>
- <div class="col-sm-10">
- <input id="mobiles" name="mobiles" class="form-control" type="text" placeholder="请输入联系人" th:field="*{mobiles}"/>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">是否@所有人:</label>
- <div class="col-sm-3">
- <div class="radio-box">
- <input type="radio" id="atAll" name="atAll" value="1" th:field="*{atAll}">
- <label for="atAll">是</label>
- </div>
- <div class="radio-box">
- <input type="radio" id="atAll2" name="atAll" value="0" th:field="*{atAll}">
- <label for="atAll2">否</label>
- </div>
- </div>
- </div>
- </form>
- </div>
- <th:block th:include="include :: footer" />
- <script type="text/javascript">
- var prefix = ctx + "system/dingTalks";
-
- $("#form-dict-edit").validate({
- focusCleanup: true
- });
-
- function submitHandler() {
- if ($.validate.form()) {
- $.operate.save(prefix + "/edit", $('#form-dict-edit').serialize());
- }
- }
- </script>
- </body>
- </html>
|