<!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-activeQr-add">
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">活动名称：</label>
            <div class="col-sm-8">
                <input name="activeName" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">type类型：</label>
            <div class="col-sm-8">
                <input name="type" class="form-control" type="number" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">预警个数：</label>
            <div class="col-sm-8">
                <input name="alarmNum" class="form-control" type="number" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">最大访问次数：</label>
            <div class="col-sm-8">
                <input name="maxCount" class="form-control" type="number" value="8000" required readonly>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
    var prefix = ctx + "sweet/active";
    $("#form-roadShow-add").validate({
        focusCleanup: true
    });

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