<!DOCTYPE html>

<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:sptg="http://www.thymeleaf.org">
<head>
    <script th:replace="common/head"></script>
    <style>
        .layui-form-label {
            width: 150px;
        }
    </style>
</head>

<body>
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-form layui-card-header layuiadmin-card-header-auto" style="padding:0;">
            <fieldset class="layui-elem-field" style="text-align: center">
                <fieldset class="layui-elem-field" >
                    <legend style="text-align: center"><span th:text="${device.alias}"></span></legend>
                    <div class="layui-field-box">
                        <div class="layui-form-item">
                            <input type="hidden" id="device_id" th:value="${device.id}" />
                            <label class="layui-form-label">小区编号：</label>
                            <div class="layui-input-inline">
                                <span></span>
                            </div>
                            <label class="layui-form-label">小区地区：</label>
                            <div class="layui-input-inline" style="width: 200px">
                                <span></span>
                            </div>
                            <label class="layui-form-label">详细地址：</label>
                            <div class="layui-input-inline" style="width: 200px">
                                <span></span>
                            </div>

                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">所属机构：</label>
                            <div class="layui-input-inline">
                                <span></span>
                            </div>
                            <label class="layui-form-label">所属物业：</label>
                            <div class="layui-input-inline">
                                <span></span>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">负责人姓名：</label>
                            <div class="layui-input-inline">
                                <span></span>
                            </div>
                            <label class="layui-form-label">负责人电话：</label>
                            <div class="layui-input-inline">
                                <span></span>
                            </div>
                            <label class="layui-form-label">已录住户人脸数：</label>
                            <div class="layui-input-inline">
                                <span></span>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">已录单元总数：</label>
                            <div class="layui-input-inline">
                                <span></span>
                            </div>
                            <label class="layui-form-label">已录房间总数：</label>
                            <div class="layui-input-inline">
                                <span></span>
                            </div>
                            <label class="layui-form-label">已录住户总数：</label>
                            <div class="layui-input-inline">
                                <span></span>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">备注：</label>
                            <div class="layui-input-inline">
                                <span></span>
                            </div>
                        </div>
                    </div>
                </fieldset>

                <fieldset class="layui-elem-field layui-field-title" >
                    <legend>设备操作</legend>
                    <div class="layui-field-box">
                        <button type="button" class="layui-btn layui-btn-normal" value="1" sptg:security="estate:unit:manage" lay-submit lay-filter="operating">单元管理</button>
                        <button type="button" class="layui-btn layui-btn-normal" value="2" sptg:security="estate:room:manage" lay-submit lay-filter="operating">房间管理</button>
                        <button type="button" class="layui-btn layui-btn-normal" value="3" sptg:security="estate:user:manage" lay-submit lay-filter="operating">住户管理</button>
                        <button type="button" class="layui-btn layui-btn-normal" value="4" sptg:security="apply:user:manage" lay-submit lay-filter="operating">住户认证记录</button>
                        <button type="button" class="layui-btn layui-btn-normal" value="5" sptg:security="estate:access:manage" lay-submit lay-filter="operating">记名门禁授权</button>
                        <button type="button" class="layui-btn layui-btn-normal" value="6" sptg:security="estate:accessCard:manage" lay-submit lay-filter="operating">不记名门禁卡</button>
                        <button type="button" class="layui-btn layui-btn-normal" value="7" sptg:security="estate:accessRecords:manage" lay-submit lay-filter="operating">出入记录</button>
                        <button type="button" class="layui-btn layui-btn-normal" value="8" sptg:security="estate:serverUser:manage" lay-submit lay-filter="operating">服务人员管理</button>
<!--                        <button type="button" class="layui-btn layui-btn-normal" value="8" sptg:security="estate:userOrder:manage" lay-submit lay-filter="manage">订单管理</button>-->
<!--                        <button type="button" class="layui-btn layui-btn-normal" value="9" sptg:security="estate:applyPayRefund:manager" lay-submit lay-filter="manage">退款申请管理</button>-->
                        <button type="button" class="layui-btn layui-btn-normal" value="9" sptg:security="device:info:manage" lay-submit lay-filter="operating">所有设备</button>
                        <button type="button" class="layui-btn layui-btn-normal" value="10" sptg:security="device:path:manage" lay-submit lay-filter="operating">设备位置</button>
                    </div>
                </fieldset>
            </fieldset>

        </div>
    </div>
</div>

<!-- 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-operating.js'}" charset="utf-8"></script>


</body>

</html>
