<%@ include file="/WEB-INF/templates/taglibs.jsp"%>

<!-- [INICIO] gerenciamentoPortfolioContratos.jsp -->
<div class='row-fluid' id='divContrato'>
	<form name='formContratos' style="display:none" action='${ctx}/pages/gerenciamentoPortfolio/gerenciamentoPortfolioContratos/gerenciamentoPortfolioContratos'>
		<input type='hidden' name='idPortfolioServicoContrato' id='idPortfolioServicoContrato'/>
		<input type='hidden' name='idServicoNegocioContrato' id='idServicoNegocioContrato'/>
		<input type='hidden' name='idContrato' id='idContrato'/>
		<input type='hidden' name='idContratoVincular' id='idContratoVincular'/>
		<input type='hidden' name='filtroContrato' id='filtroContrato'/>
		<input type='hidden' name='paginaSelecionadaContrato' id='paginaSelecionadaContrato'/>
		<input type='hidden' name='isEditar' id='isEditar'/>
		<input type='hidden' name='acaoContratoOcorrenciaServico' id='acaoContratoOcorrenciaServico'/>
		<input type='hidden' name='idsContratoOcorrenciaServico' id='idsContratoOcorrenciaServico'/>
	</form>

	<div class='row-fluid'>
		<button type='button' id='btnVincularContrato' class="botaoNovo lFloat btn btn-icon btn-primary glyphicons retweet btnGravar" onclick="vincularContrato();"><i></i> <fmt:message key="gerenciaportfolio.vincularContrato" /></button>
		<button type='button' id='btnNovoContrato' class="botaoNovo lFloat btn btn-icon btn-primary glyphicons circle_plus" onclick="clickNovoContrato();"><i></i> <fmt:message key="gerenciaportfolio.novoContrato" /></button>
	</div>

	<div class="row-fluid">
		<div class="span12 input-append">
			<div class="span12">
				<input autofocus class="campoPesquisa" type="text" id="inputFiltroContrato">
				<span onclick="limpaFiltroContrato();" class="add-on remove xPesquisa"><i class="icon-remove" deluminate_imagetype="png"></i></span>
				<span onclick="pesquisaFiltroContrato();" class="add-on lupaPesquisa xPesquisa"><i class="icon-search" deluminate_imagetype="png"></i></span>
			</div>
		</div>
	</div>

	<div class='row-fluid'>
		<div id="divDinamicoTabelaContratos"></div>
	</div>

	<!-- [INÍCIO MODAIS] Cadastro Contrato -->
	<div class="modal modal-bigger hide fade" id="modal-lookup-cadastro-contrato" data-uuid="">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
			<h3 class="title">
				<fmt:message key="gerenciaportfolio.cadastroContrato" />
			</h3>
		</div>
		
		<div class="modal-body modal-body-max-height">
			<div id="conteudo_popup_cadastro_contrato" data-notificacao="true">
				<div class="carregando"></div>
			</div>
		</div>
	</div>
	
	<!-- Pesquisa Contrato -->
	<div class="modal modal-medium hide fade" id="modal-lookup-pesquisa-contrato" data-uuid="">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal" aria-hidden="true" onclick="fechaModalPesquisaContrato();">&times;</button>
			<h3 class="title">
				<fmt-message key="gerenciaportfolio.vinculoContrato" />
			</h3>
		</div>
		
		<div class="modal-body modal-body-max-height">
			<form name='formPesquisaContrato'>
				<cit:findField formName='formPesquisaContrato' lockupName='LOOKUP_CONTRATOS_NEGOCIO_ATIVOS' id='LOOKUP_CONTRATOS_VINCULAR' heigth='400' javascriptCode='true' htmlCode='true'/>
			</form>
		</div>
	</div>
	<!-- [FIM MODAIS] -->
	
</div>
<!-- [FIM] gerenciamentoPortfolioContratos.jsp -->