<!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">
        <!-- 省市区样式 -->
        <link rel="stylesheet" th:href="@{'/layui/lay/mymodules/region.css'}">
    </head>
    <body>
        <div class="layui-fluid">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body" pad15>
                            <div class="layui-form" >
                                <input type="hidden" lay-verify="required" name="id" th:value="${residential.id}" />
                                <div class="layui-form-item">
                                    <label class="layui-form-label"><span class="must">*</span>小区名称</label>
                                    <div class="layui-input-inline">
                                        <span th:text="${residential.name}"></span>
                                    </div>
                                </div>
                                <div class="layui-form-item layui-form">
                                    <label class="layui-form-label">
                                        <span>所属物业</span>
                                    </label>
                                    <div class="layui-input-inline">
                                        <span th:text="${residential.estatePidName}"></span>
                                    </div>
                                </div>
                                <div id="l_org_pid" class="layui-form-item">
                                    <div class="layui-form" lay-filter="org_pid_filter">
                                        <label class="layui-form-label"><span class="must">*</span>所属机构</label>
                                        <div class="layui-input-inline">
                                            <select id="org_pid" lay-search="" name="orgPid" lay-verify="required" lay-filter="org_pid_event" >
                                                <option value="">请选择所属机构</option>
                                            </select>
                                            <input type="hidden" id="orgPidName" name="orgPidName" />
                                        </div>
                                    </div>
                                </div>

                                <div class="layui-form-item">
                                    <div class="layui-input-block">
                                        <button class="layui-btn" lay-submit lay-filter="submit_button">提交</button>
                                        <button type="reset" class="layui-btn layui-btn-primary" id="cancel_btn">取消</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- javascript -->
        <script th:src="@{'/layui/layui.js'}"></script>
        <script>
            layui.config({
                base: '/' //静态资源所在路径
            });
        </script>
        <script th:src="@{'/js/estate/residential-assign.js'}"></script>
    </body>
</html>