<!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-edit" th:object="${SweetActiveType}">
        <div class="form-group" style="display: none">
            <label class="col-sm-3 control-label is-required">mid：</label>
            <div class="col-sm-8">
                <input name="mid" th:value="*{mid}" class="form-control" type="text" required readonly>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">活动名称：</label>
            <div class="col-sm-8">
                <input name="activeName" th:value="*{activeName}" class="form-control" type="text" required readonly>
            </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" th:value="*{type}" class="form-control" type="number" required readonly>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">预警个数：</label>
            <div class="col-sm-8">
                <input name="alarmNum" th:value="*{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" th:value="*{maxCount}" class="form-control" type="number" required readonly>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
    var prefix = ctx + "sweet/active";
    $("#form-roadShow-edit").validate({
        focusCleanup: true
    });

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