<!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">
                        <label class="layui-form-label">类别名称</label>
                        <div class="layui-input-block">
                            <input type="text"id="selectedName" name="name" placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div>

                    <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" style="padding:0;">
                    <div style="padding-bottom: 10px;">
                        <button class="layui-btn layuiadmin-btn-admin" lay-submit lay-filter="add" sptg:security="ad:type:insert">添加类别</button>
                        <button class="layui-btn layuiadmin-btn-admin" lay-submit lay-filter="batchdel" sptg:security="ad:type:delete">批量删除</button>
                    </div>
                    <table id="table-id" lay-filter="table-id"></table>
                </div>
            </div>
        </div>
    </div>

    <!--操作按钮-->
    <script type="text/html" id="table-operate-id">
        <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit" sptg:security="ad:type:insert">修改</a>
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del" sptg:security="ad:type:delete">删除</a>
    </script>
    <!-- javascript -->
    <script th:src="@{'/layui/layui.js'}" charset="utf-8"></script>
    <script>
        layui.config({
            base: '/' //静态资源所在路径
        });
    </script>
    <script th:src="@{'/js/ad/ad-type-manage.js'}" charset="utf-8"></script>
</body>

</html>