<!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-userConfig-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">公众号开启推送1是0否：</label>
                <div class="col-sm-8">
                    <input name="pushOpen" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">推送时间,号隔开：</label>
                <div class="col-sm-8">
                    <input name="pushTime" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">推送次数：</label>
                <div class="col-sm-8">
                    <input name="pushCount" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">是否关注公众号1是0否：</label>
                <div class="col-sm-8">
                    <input name="subMp" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">公众号openid：</label>
                <div class="col-sm-8">
                    <input name="mpOpenId" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">不接受推送开始时间：</label>
                <div class="col-sm-8">
                    <input name="forbidStartTime" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">不接受推送结束时间：</label>
                <div class="col-sm-8">
                    <input name="forbidEndTime" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">订阅查询时间戳：</label>
                <div class="col-sm-8">
                    <input name="subQueryTime" class="form-control" type="text" required>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "business/userConfig"
        $("#form-userConfig-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-userConfig-add').serialize());
            }
        }
    </script>
</body>
</html>