<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
    <head>
        <script th:replace="common/head"></script>
        <!-- 省市区样式 -->
        <link rel="stylesheet" th:href="@{'/layui/lay/mymodules/region.css'}">
    </head>
    <body>
    <input type="hidden" name="parentId" id="parentId" th:value="${parentId}" />
    <input type="hidden" name="flag" id="flag" th:value="${flag}" />
        <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">
                            <div class="layui-form">
                                <div class="layui-form-item">
                                    <div class="layui-form" lay-filter="residential_filter">
                                        <label class="layui-form-label"><span class="must">*</span>所属小区</label>
                                        <div class="layui-input-inline">
                                            <div id="residential_id"></div>
                                        </div>
                                        <input type="hidden" id="residential_name"  name="xqName" >
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">
                                        <span class="must">*</span>
                                        <span>位置名称:</span>
                                    </label>
                                    <div class="layui-input-inline">
                                        <input name="name" type="text" lay-verify="required|specialCharacters|length" placeholder="请输入位置名称" autocomplete="off" class="layui-input" />
                                    </div>
                                    <div class="layui-form-mid layui-word-aux">如：大门、出口、入口</div>
                                </div>
                                <div class="layui-form-item">
                                    <div class="layui-form" lay-filter="residential_filter">
                                        <label class="layui-form-label"><span class="must">*</span>位置用途</label>
                                        <div class="layui-input-inline">
                                            <div id="path_use"></div>
                                            <!--<select id="path_use" name="pathUse" lay-filter="path_use_event" lay-verify="required" >
                                                <option value="">请选择</option>
                                                <option value="10">一般位置</option>
                                                <option value="11">特殊位置</option>
                                            </select>-->
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label">
                                        <span class="must">*</span>
                                        <span>位置类型:</span>
                                    </label>
                                    <div class="layui-input-inline">
                                        <div id="path_type"></div>
                                        <!--<select name="type" lay-filter="type" lay-verify="required">
                                            <option value="0">小区</option>
                                            <option value="1">单元</option>
                                        </select>-->
                                    </div>
                                </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>
                </div>
            </div>
        </div>

    </body>
    <!-- javascript -->
    <script type="text/javascript" th:src="@{'/layui/layui.js'}" charset="utf-8"></script>
    <script type="text/javascript">
        layui.config({
            base: '/' //静态资源所在路径
        });
    </script>
    <script type="text/javascript" th:src="@{'/js/device/device-path-add.js'}" charset="utf-8"></script>
</html>
