<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
    <head>
        <script th:replace="common/head"></script>
        <!-- 样式 -->
        <link rel="stylesheet" th:href="@{'/css/permission/community-add.css'}" media="all">
    </head>
    <body>
        <input type="hidden" id="org_id" th:value="${orgId}" />
        <div class="layui-card">
            <div class="layui-card-body">
                <div class="layui-form" lay-filter="entity_form">
                    <!-- 机构名称 -->
                    <div class="layui-form-item">
                        <label class="layui-form-label">
                            <span>机构名称</span>
                        </label>
                        <div class="layui-input-inline">
                            <input type="text" id="org_name" class="layui-input" disabled />
                        </div>
                    </div>
                    <!-- 原上级机构 -->
                    <div class="layui-form-item">
                        <label class="layui-form-label">
                            <span>原上级机构</span>
                        </label>
                        <div class="layui-input-inline">
                            <input type="text" id="old_parent_name" class="layui-input" disabled />
                        </div>
                    </div>
                    <!-- 新上级机构 -->
                    <div id="parent_entity" class="layui-form-item layui-form">
                        <label class="layui-form-label">
                            <span class="must">*</span>
                            <span>上级机构</span>
                        </label>
                        <div class="layui-input-inline">
                            <input id="search_text" type="text" placeholder="" autocomplete="off" class="layui-input">
                            <dl class="layui-anim layui-anim-upbit" id="select_content"></dl>
                            <input name="pid" lay-verify="required" type="hidden" />
                        </div>
                        <label id="tips" class="layui-form-label" style="display: none">
                            <span>不选则作为顶级物业</span>
                        </label>
                    </div>
                    <!-- 按钮 -->
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit="" lay-filter="entity_submit_event">提交</button>
                            <button type="reset" class="layui-btn layui-btn-primary">取消</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </body>
    <!-- javascript -->
    <script type="text/javascript" th:src="@{'/layui/layui.js'}"></script>
    <script type="text/javascript">
        layui.config({
            base: '/'
        });
        //  页面数据
        var pageData = {
            orgId   :   document.getElementById('org_id').value
        };
    </script>
    <script type="text/javascript" th:src="@{'/js/permissions/org-transfer.js'}"></script>
</html>