123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <!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" id="chargeErBanNo">
- <label class="col-sm-2 control-label">渠道:</label>
- <div class="col-sm-10">
- <input name="channel" id="channel" class="form-control" type="text" placeholder="请输入渠道"/>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">渠道别名:</label>
- <div class="col-sm-10">
- <input id="channelName" name="channelName" class="form-control" type="text" placeholder="请输入渠道别名" required/>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">上级渠道:</label>
- <div class="col-sm-10">
- <select name="superiorChannel" id="superiorChannel" th:with="type=${homeChannelList}">
- <option value=''>全部</option>
- <option th:each="homeChannel : ${type}" th:text="${homeChannel.name}" th:value="${homeChannel.channel}"></option>
- </select>
- </div>
- </div>
- <div class="form-group" id="chargeBlockIp">
- <label class="col-sm-2 control-label">首页默认大小:</label>
- <div class="col-sm-10">
- <input id="homeDefault" name="homeDefault" class="form-control" type="text" placeholder="请输入首页默认大小" required/>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">新老用户:</label>
- <div class="col-sm-10">
- <select name="isNews" id="isNews" class="form-control m-b" th:with="type=${@dict.getType('is_news_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">
- <select name="type" id="type" class="form-control m-b" th:with="type=${@dict.getType('is_foreign_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">
- <select name="groupId" th:with="type=${homeChannelGroupList}">
- <option value="0">没有</option>
- <option th:each="homeChannelGroup : ${type}" th:text="${homeChannelGroup.groupName}" th:value="${homeChannelGroup.groupId}"></option>
- </select>
- </div>
- </div>
- </form>
- </div>
- <th:block th:include="include :: footer" />
- <th:block th:include="include :: summernote-js" />
- <script type="text/javascript">
- var prefix = ctx + "marketing/channel";
- $("#form-notice-add").validate({
- focusCleanup: true
- });
- function submitHandler() {
- if ($.validate.form()) {
- $.operate.save(prefix + "/add", $('#form-notice-add').serialize());
- }
- }
- </script>
- </body>
- </html>
|