<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
    <head>
        <script th:replace="common/head"></script>
    </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="${floor.id}" />
                                <div class="layui-form-item">
                                    <label class="layui-form-label"><span class="must">*</span>单元名称</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="name" th:value="${floor.name}" lay-verify="required|specialCharacters|length" 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 name="residentialName" th:value="${floor.residentialName}" readonly type="text" placeholder="" autocomplete="off" class="layui-input">
                                        <input name="residentialId" th:value="${floor.residentialId}" lay-verify="required" type="hidden" />
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label"><span class="must">*</span>所属楼栋</label>
                                    <div class="layui-input-inline">
                                        <input name="buildingName" th:value="${floor.buildingName}" readonly type="text" placeholder="" autocomplete="off" class="layui-input">
                                        <input name="buildingId" th:value="${floor.buildingId}" lay-verify="required" type="hidden" />
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label"><span class="must">*</span>所属单元</label>
                                    <div class="layui-input-inline">
                                        <input name="unitName" th:value="${floor.unitName}" readonly type="text" placeholder="" autocomplete="off" class="layui-input">
                                        <input name="unitId" th:value="${floor.unitId}" lay-verify="required" type="hidden" />
                                    </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="personName" th:value="${floor.personName}"  placeholder="" autocomplete="off"
                                               class="layui-input" lay-verify="personName">
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label"><span class="must">*</span>联系电话</label>
                                    <div class="layui-input-inline">
                                        <input type="number" name="personTel" th:value="${floor.personTel}"  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="remark" th:text="${floor.remark}" placeholder="请输入300字以内的备注介绍" 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 -->
        <!--去掉input type="number"后面的箭头-->
        <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/floor-edit.js'}"></script>
    </body>
</html>
