<!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-performances-edit" th:object="${performanceMemberAuditDao}">
            <div class="form-group">
                <div class="col-sm-8">
                    <input name="performancesId" th:field="*{performancesId}" class="form-control" type="hidden" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">演出名称：</label>
                <div class="col-sm-8">
                    <input name="title" th:field="*{title}" 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" th:if="*{isMember==1}">
                    <div class="radio check-box">
                        <input type="radio" value="1" name="isMember" checked> 关联会员</label>
                    </div>
                    <div class="radio check-box">
                        <input type="radio" value="0" name="isMember"> 不关联会员</label>
                    </div>
                </div>
                <div class="col-sm-8" th:if="*{isMember==0}">
                    <div class="radio check-box">
                        <input type="radio" value="1" name="isMember"> 关联会员</label>
                    </div>
                    <div class="radio check-box">
                        <input type="radio" value="0" name="isMember" checked> 不关联会员</label>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">该演出是否会员专属：</label>
                <div class="col-sm-8" th:if="*{isExclusive==1}">
                    <div class="radio check-box">
                        <input type="radio" value="1" name="isExclusive" checked> 会员专属</label>
                    </div>
                    <div class="radio check-box">
                        <input type="radio" value="0" name="isExclusive"> 不专属</label>
                    </div>
                </div>
                <div class="col-sm-8" th:if="*{isExclusive==0}">
                    <div class="radio check-box">
                        <input type="radio" value="1" name="isExclusive"> 会员专属</label>
                    </div>
                    <div class="radio check-box">
                        <input type="radio" value="0" name="isExclusive" checked> 不专属</label>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">票种列表：（限购数量0为不限购）：</label>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        // alert('[[${performanceMemberAuditDao.title}]]')
        var prefix = ctx + "kylin/performances";
        $("#form-performances-edit").validate({
            focusCleanup: true
        });
        //
        // function submitHandler() {
        //     if ($.validate.form()) {
        //         $.operate.save(prefix + "/edit", $('#form-performances-edit').serialize());
        //     }
        // }


    </script>
</body>
</html>