<!DOCTYPE html>
<html lang="zh">
<head>
    <@meta/>
	<title>系统用户管理</title>
    <#include "admin/common/include_hplus.ftl">
    <#include "admin/common/include_table.ftl">

    <script src="<@contextPath/>/templates/admin/framework/system/administrator/js/list.js"></script>
</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox ">
                    <div class="ibox-content">
                        <h3>${module.name}<input type="hidden" id="moduleId" value="${module.oid}"></h3>

                        <script type="text/html" id="tableRowToolbar">
                            <a class="btn btn-xs btn-white" data-event="view">查看</a>
                            <@shiro.hasPermission name="SysUser_Edit">
                            <a class="btn btn-xs btn-primary" data-event="edit">编辑</a>
                            </@shiro.hasPermission>
                            {{if userType != 0}}
                            <@shiro.hasPermission name="SysUser_MP">
                            <a class="btn btn-xs btn-warning" data-event="auth">权限</a>
                            </@shiro.hasPermission>
                            <@shiro.hasPermission name="SysUser_Del">
                            <a class="btn btn-xs btn-danger" data-event="del">删除</a>
                            </@shiro.hasPermission>
                            {{/if}}
                        </script>

                        <div class="btn-group" id="tableEventsToolbar" role="group">
                            <@shiro.hasPermission name="SysUser_Add">
                            <button type="button" class="btn btn-outline btn-default" onclick="AppUser.add()">
                                <i class="fa fa-plus" aria-hidden="true"></i> 添加
                            </button>
                            </@shiro.hasPermission>
                            <@shiro.hasPermission name="SysUser_Del">
                            <button type="button" class="btn btn-outline btn-default" onclick="AppUser.batchDelete()">
                                <i class="fa fa-trash" aria-hidden="true"></i> 删除
                            </button>
                            </@shiro.hasPermission>
                        </div>
                        <table id="tableEvents" data-mobile-responsive="true">
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
