<!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-qrcode-edit" th:object="${SweetQrCode}">
        <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" class="form-control" th:value="*{mid}" type="text" required readonly>
            </div>
        </div>
        <div class="form-group" style="display: none">
            <label class="col-sm-3 control-label is-required">qrCodeId：</label>
            <div class="col-sm-8">
                <input name="qrCodeId" class="form-control" th:value="*{qrCodeId}" type="text" required readonly>
            </div>
        </div>
        <div class="form-group" style="display: none">
            <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="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="url" th:value="*{url}" 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="url" th:value="*{showNum}" 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="readNum" th:value="*{readNum}" class="form-control" type="number" required>
            </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 + "/editQrCode", $('#form-qrcode-edit').serialize());
        }
    }
</script>
</body>
</html>