<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:sptg="http://www.thymeleaf.org">
<head>
    <script th:replace="common/head"></script>
</head>

<body>
    <div class="layui-fluid">
        <div class="layui-card">
            <div class="layui-form layui-card-header layuiadmin-card-header-auto" style="padding:0;">
                <div class="layui-form-item border-b">
                    <!--<div class="layui-inline" style="margin-left: 38px;">
                        <button class="layui-btn layuiadmin-btn-useradmin"  lay-submit lay-filter="query">查询</button>
                        <button class="layui-btn  layui-btn-primary"  lay-submit lay-filter="reset">重置</button>
                    </div>-->
                </div>

                <!-- 表格+头部按钮 -->
                <div class="layui-card-body">
                    <table id="table_id" lay-filter="table_event"></table>
                </div>
            </div>
        </div>
        <input type="hidden" id="id" th:value="${id}">
    </div>

    <script type="text/html" id="enable">
        {{#  if(d.enable == 1){ }}
        <span class="layui-badge layui-bg-blue">启用</span>
        {{# } else if(d.enable == 2){ }}
        <span class="layui-badge layui-bg-red">禁用</span>
        {{#  } }}
    </script>

    <script type="text/html" id="table-useradmin-webuser">
        {{#  if(d.enable == 1){ }}
        <a class="layui-btn layui-btn-warm layui-btn-xs" lay-event="enable2" sptg:security="estate:member:manager:access">禁用</a>
        {{# } else if(d.enable == 2){ }}
        <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="enable1"sptg:security="estate:member:manager:access">启用</a>
        {{#  } }}
    </script>

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

</html>