<%@include file="/novoLayout/common/include/iframe.jsp" %>

<!doctype html public "">
<html <%=(iframe != null) ? "data-iframe=\"" + iframe + "\"" : "" %>>
	<head>	
		<%@include file="/novoLayout/common/include/libCabecalho.jsp" %>
		<%@include file="/novoLayout/common/include/titulo.jsp" %>
		<link type="text/css" rel="stylesheet" href="../../novoLayout/common/include/css/template.css"/>
		<link type="text/css" rel="stylesheet" href="./css/permissaoAcessoPortfolio.css"/>
	</head>
	<cit:janelaAguarde id="JANELA_AGUARDE_MENU"  title="" style="display:none;top:325px;width:300px;left:500px;height:50px;position:absolute;"></cit:janelaAguarde>
	<body>
		<%@include file="/novoLayout/common/include/customtip.jsp"%>
		<div class="container-fluid fixed">
			<div class="navbar main hidden-print">
				<%@include file="/novoLayout/common/include/cabecalho.jsp" %>
				<%@include file="/novoLayout/common/include/menuPadrao.jsp" %>
			</div>
	
			<div id="wrapper">
				<div id="content">
					<div class="separator top"></div>
					<div class="row-fluid">
						<div id="innerLR" class="innerLR">
							<div class="widget">
								<div class="widget-head">
									<h4 class="heading"><fmt:message key="permissaoAcessoPortfolio.titulo" /></h4>
								</div>
								<div class="widget-body">
									<form name="formPerfilAcessoPortfolio" action="${ctx}/pages/permissaoAcessoPortfolio/permissaoAcessoPortfolio">
										<input type='hidden' name='idPerfilAcesso' id="idPerfilAcesso" value=""/>
										<input type='hidden' name='json' id="json" value=""/>
										
										<div class="row-fluid">
											<div class='span3'>
												<label class="strong campoObrigatorio"> <fmt:message key="perfil.perfil" /> </label>
												<input type="text" name="nomePerfilAcesso" id="nomePerfilAcesso" required="required" class="span12 Valid[Required] Description[perfil.perfil]" onclick="PerfilAcessoPortfolio.clickPerfilAcesso();" readonly="readonly" style="cursor: pointer;" />
											</div>
										</div>
											
										<div class="row-fluid">
											<div id="permissao-acesso-portfolio-container"></div>
										</div>
										
										<div class="separator"></div>
										
										<div class='row-fluid'>
											<div class='span12'>
												<button type='button' name='btnGravar' class="lFloat btn btn-icon btn-primary btnGravar" onclick='PerfilAcessoPortfolio.gravar();'><i></i><fmt:message key="citcorpore.comum.gravar" /></button>
												<button type="button" name='btnLimpar' class="lFloat btn btn-icon btn-primary" onclick='PerfilAcessoPortfolio.limpar();'><i></i><fmt:message key="citcorpore.comum.limpar" /></button>
											</div>
										</div>
									</form>
								</div>
								<div id="POPUP_PERFILACESSO" title="<fmt:message key="perfil.perfil" />" class="dialogPerfilAcesso section hide">
									<form name='formPesquisaPerfilAcesso'>
										<cit:findField formName='formPesquisaPerfilAcesso' lockupName='LOOKUP_PERFILACESSO' id='LOOKUP_PERFILACESSO' heigth='400' javascriptCode='true' htmlCode='true' />
									</form>
								</div>
							</div>
						</div>
					</div>
				</div>
				<!--  Fim conteudo-->
				<%@include file="/novoLayout/common/include/rodape.jsp" %>
			</div>
		</div>
		
		<script type="text/javascript" src="./js/permissaoAcessoPortfolio.js"></script>
	</body>
</html>

<script type="template" id="permissao-acesso-portfolio-table-template">
<div class="row-fluid">
	<div class="span12">
		<div class="separator top"></div>
		<div class="box-generic">
			<table class="table table-condensed">
				<thead>
					<tr>
						<th>{#permissaoAcessoPortfolio.fase#}</th>
						<th>{#permissaoAcessoPortfolio.pagina#}</th>
						<th class="right">{#citcorpore.comum.pesquisar#}</th>
						<th class="right">{#citcorpore.comum.gravar#}</th>
						<th class="right">{#citcorpore.comum.deletar#}</th>
					</tr>
				</thead>
				<tbody></tbody>
			</table>
		</div>
	</div>
</div>
</script>

<script type="template" id="permissao-acesso-portfolio-tr-template">
<tr class="permissao-acesso-portfolio-tr" data-caminho="{{caminho}}">
	<td>{{fase}}</td>
	<td>{{nomePagina}}</td>
	<td class="right uniformjs" data-fase="{{fase}}" data-pagina="{{nomePagina}}" data-acao="pesquisa"><label class="checkbox"><input type="checkbox" class="checkbox" {{permissaoPesquisar}}/></label></td>
	<td class="right uniformjs" data-fase="{{fase}}" data-pagina="{{nomePagina}}" data-acao="grava"><label class="checkbox"><input type="checkbox" class="checkbox" {{permissaoGravar}}/></label></td>
	<td class="right uniformjs" data-fase="{{fase}}" data-pagina="{{nomePagina}}" data-acao="deleta"><label class="checkbox"><input type="checkbox" class="checkbox" {{permissaoDeletar}}/></label></td>
</tr>
</script>