<!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-edit" th:object="${tbUserConfig}">
            <input name="userId" th:field="*{userId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">公众号开启推送1是0否：</label>
                <div class="col-sm-8">
                    <input name="pushOpen" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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" th:field="*{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-edit").validate({
            focusCleanup: true
        });

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