<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <script th:replace="common/head"></script>
    <link xmlns:th="http://www.thymeleaf.org" rel="stylesheet" th:href="${'/css/estate/access.css'}" media="all">
</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" lay-filter="">
                        <!--以后换成下拉树形-->
                        <div class="layui-form-item">
                            <label class="layui-form-label"><span class="must">*</span>车场编号</label>
                            <div class="layui-input-inline">
                                <input type="text" name="parkKey" lay-verify="required" placeholder=""
                                       autocomplete="off"
                                       class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label"><span class="must">*</span>停车场名称</label>
                            <div class="layui-input-inline">
                                <input type="text" name="parkName" lay-verify="required" placeholder=""
                                       autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-form" lay-filter="unit_filter">
                                <label class="layui-form-label"><span class="must">*</span>所属社区</label>
                                <div class="layui-input-inline">
                                    <div id="agency_id"></div>
                                </div>
                            </div>

                            <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>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label"><span class="must">*</span>车场联系人</label>
                            <div class="layui-input-inline">
                                <input type="text" name="parkLinkman" lay-verify="required" placeholder=""
                                       autocomplete="off"
                                       class="layui-input">
                            </div>

                            <label class="layui-form-label"><span class="must">*</span>联系方式</label>
                            <div class="layui-input-inline">
                                <input type="text" name="parkTel" lay-verify="required" placeholder=""
                                       autocomplete="off"
                                       class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label"><span class="must">*</span>车场地址</label>
                            <div class="layui-input-inline">
                                <input type="text" name="parkAdd" lay-verify="required" placeholder=""
                                       autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                                <label class="layui-form-label"><span class="must">*</span>车场纬度</label>
                            <div class="layui-input-inline">
                                <input type="text" name="parkLatitude" lay-verify="required" placeholder=""
                                       autocomplete="off"
                                       class="layui-input">
                            </div>
                                <label class="layui-form-label"><span class="must">*</span>车场经度</label>
                            <div class="layui-input-inline">
                                <input type="text" name="parkLongitude" lay-verify="required" placeholder=""
                                       autocomplete="off"
                                       class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label"><span class="must">*</span>免费分钟数</label>
                            <div class="layui-input-inline">
                                <input type="text" name="parkFreeTime" lay-verify="required" placeholder=""
                                       autocomplete="off"
                                       class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label"><span class="must">*</span>免费超时数</label>
                            <div class="layui-input-inline">
                                <input type="text" name="parkFreeTimeout" lay-verify="required" placeholder=""
                                       autocomplete="off"
                                       class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label"><span class="must">*</span>预定功能</label>
                            <div class="layui-input-inline">
                                <input type="text" name="reserveStatus" lay-verify="required" placeholder=""
                                       autocomplete="off"
                                class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label"><span class="must">*</span>注册时间</label>
                            <div class="layui-input-inline">
                                <input type="text" name="regTime" lay-verify="required" placeholder=""
                                       autocomplete="off"
                                class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label"><span class="must">*</span>车场到期日</label>
                            <div class="layui-input-inline">
                                <input type="text" name="validTime" lay-verify="required" placeholder=""
                                       autocomplete="off"
                                class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label"><span class="must">*</span>车位总数</label>
                            <div class="layui-input-inline">
                                <input type="text" name="spaceTotal" lay-verify="required" placeholder=""
                                       autocomplete="off"
                                class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item layui-form-text">
                            <label class="layui-form-label">收费说明</label>
                            <div class="layui-input-block">
                                <textarea name="chargesDesc" class="layui-textarea w500"></textarea>
                            </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 -->
<style type="text/css">
    input::-webkit-outer-spin-button,
    input::-webkit-inner-spin-button {
        -webkit-appearance: none;
    }

    input[type="number"] {
        -moz-appearance: textfield;
    }
</style>
<script type="text/javascript" th:src="@{'/layui/layui.js'}"></script>
<script type="text/javascript">
    layui.config({
        base: '/' //静态资源所在路径
    });
</script>
<script type="text/javascript" th:src="@{'/js/estate/parking-lot-add.js'}"></script>
</body>
</html>
