<!DOCTYPE html>
<html lang="zh">
<head>
	<@meta/>
	<title>权限管理</title>
	<#include "admin/common/include_hplus.ftl">
	<#include "admin/common/include_table.ftl">
	<#include "admin/common/include_ztree.ftl">
	<script src="<@contextPath/>/templates/admin/framework/system/authorization/js/main.js" type="text/javascript"></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}</h3>

					<table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0">
						<tr>
							<td valign="top" style="padding-right: 10px;">

								<script type="text/html" id="tableRowToolbar">
									<@shiro.hasPermission name="Authoriz_Edit">
										<a class="btn btn-xs btn-primary" data-event="edit">编辑</a>
									</@shiro.hasPermission>
									<@shiro.hasPermission name="Authoriz_Del">
										<a class="btn btn-xs btn-danger" data-event="del">删除</a>
									</@shiro.hasPermission>
								</script>

								<div class="btn-group" id="tableEventsToolbar" role="group">
									<@shiro.hasPermission name="Authoriz_Add">
										<button type="button" class="btn btn-outline btn-default" onclick="AppAuthorization.add()">
											<i class="fa fa-plus" aria-hidden="true"></i> 添加
										</button>
									</@shiro.hasPermission>
								</div>
								<table id="tableEvents" data-mobile-responsive="true">
								</table>
							</td>
							<td id="authorization_module_tree" valign="top" width="350" style="padding-left:15px;padding-top: 10px;border-left: 1px solid #e5e5e5;">
								<div style="padding: 0px 0 5px 10px;border-bottom: 1px solid #e5e5e5;">
									<@shiro.hasPermission name="Authoriz_Edit">
									<button onclick="AppAuthorization.saveRoleModule()" class="btn btn-outline btn-default" type="button"><i class="fa fa-save"></i> 保存权限</button>
									</@shiro.hasPermission>
								</div>
								<ul class="ztree"></ul>
							</td>
						</tr>
					</table>

				</div>
			</div>
		</div>
	</div>
</div>
</body>
</html>
