<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改知识库内容')" />
    <th:block th:include="include :: summernote-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-kbcontent-edit" th:object="${ccLlmKb}">
            <input name="id" th:field="*{id}" type="hidden">
            <input name="catId" th:field="*{catId}" type="hidden">
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required" th:text="#{kbcontent.form.title}"></label>
                    <div class="col-sm-8">
                        <textarea name="title" class="form-control" th:field="*{title}" required></textarea>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required" th:text="#{kbcontent.form.content}"></label>
                    <div class="col-sm-8">
                        <textarea name="content" class="form-control" rows="10" th:field="*{content}" required></textarea>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: summernote-js" />
    <script th:inline="javascript">
        var prefix = ctx + "aicall/kbcontent";
        $("#form-kbcontent-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-kbcontent-edit').serialize());
            }
        }

        $(function() {

        });
    </script>
</body>
</html>