<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('修改文章模板')"/>
    <th:block th:include="include :: datetimepicker-css"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-articletemplate-edit" th:object="${cmsArticleTemplate}">
        <input name="templeId" th:field="*{templeId}" type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label"><span style="color: red; ">*</span>模板名称：</label>
            <div class="col-sm-8">
                <input name="templeName" th:field="*{templeName}" class="form-control" type="text" required
                       disabled="disabled"
                       maxlength="255">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label"><span style="color: red; ">*</span>审核状态：</label>
            <div class="col-sm-8">
                <select name="auditState" class="form-control m-b" th:with="type=${@dict.getType('cms_audit_state')}"
                        required>
                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"
                            th:field="*{auditState}"></option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label"><span style="color: red; ">*</span>审核意见：</label>
            <div class="col-sm-8">
                <input value="ok" name="auditReason" th:field="*{auditReason}" class="form-control" type="text" required
                       maxlength="255">
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<script type="text/javascript">
    var prefix = ctx + "bussiness_cms/articletemplate";
    $("#form-articletemplate-edit").validate({
        focusCleanup: true
    });

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