<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib uri="/WEB-INF/taglib/c.tld" prefix="c"%>
<%@ include file="../common/init.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@ include file="../common/top.jsp"%>
</head>
<body class="easyui-layout">
	<%@ include file="../common/header.jsp"%>
	<%@ include file="../leftMenu/sys-admin.jsp"%>
	<div data-options="region:'center',title:'首页 -【系统管理】- 角色管理'">
		<div class="easyui-layout" data-options="fit:true,border:false">
			<div data-options="region:'center'" class="border">
				<form class="form-horizontal" action="${ctx}/admin/role/save" method="post">
					<input type="hidden" name="name" value="${role.name}" />
					<div class="control-group">
						<label class="control-label" for="">角色名称</label>
						<div class="controls">${role.display}</div>
					</div>
					<div class="control-group">
						<label class="control-label" for="">权限</label> 
						<c:forEach items="${authList}" var="auth">
						<label class="checkbox inline"> 
							<input type="checkbox" name="authNames" value="${auth.name}" <c:if test="${authMap[auth.name]!=null}">checked</c:if>> ${auth.display} 
						</label> 
						</c:forEach>
					</div>
					<div class="controls">
            			<input type="submit" class="btn btn-primary" value="保存"/>
          			</div>
				</form>
			</div>
		</div>
	</div>
</body>
</html>
