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

<!-- [INICIO] gerenciamentoPortfolioContratosApoio.jsp -->
<div class='row-fluid' id='divContrato'>
	<form name='formContratosApoio' style="display:none" action='${ctx}/pages/gerenciamentoPortfolio/gerenciamentoPortfolioContratosApoio/gerenciamentoPortfolioContratosApoio'>
		<input type='hidden' name='idPortfolioServicoContrato' id='idPortfolioServicoContrato'/>
		<input type='hidden' name='idServicoApoioContrato' id='idServicoApoioContrato'/>
		<input type='hidden' name='idContrato' id='idContrato'/>
		<input type='hidden' name='idContratoApoioVincular' id='idContratoApoioVincular'/>
		<input type='hidden' name='filtroContratoApoio' id='filtroContratoApoio'/>
		<input type='hidden' name='paginaSelecionadaContratoApoio' id='paginaSelecionadaContratoApoio'/>
		<input type='hidden' name='isEditar' id='isEditar'/>
	</form>

	<div class='row-fluid'>
		<button type='button' id='btnVincularContratoApoio' class="botaoNovo lFloat btn btn-icon btn-primary glyphicons retweet btnGravar" onclick="vincularContratoApoio();"><i></i> <fmt:message key="gerenciaportfolio.vincularContrato" /></button>
		<button type='button' id='btnNovoContratoApoio' class="botaoNovo lFloat btn btn-icon btn-primary glyphicons circle_plus" onclick="clickNovoContratoApoio();"><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="inputFiltroContratoApoio">
				<span onclick="limpaFiltroContratoApoio();" class="add-on remove xPesquisa"><i class="icon-remove" deluminate_imagetype="png"></i></span>
				<span class="add-on lupaPesquisa" style="cursor: pointer;" onclick="pesquisaFiltroContratoApoio();">
					<i class="icon-search" deluminate_imagetype="png"></i>
				</span>
			</div>
		</div>
	</div>

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

	<!-- [INÍCIO MODAIS] Cadastro Contrato Apoio -->
	<div class="modal modal-bigger hide fade" id="modal-lookup-cadastro-contrato-apoio" 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_apoio" >
				<div class="carregando"></div>
			</div>
		</div>
	</div>
	
	<!-- Pesquisa Contrato Apoio -->
	<div class="modal modal-medium hide fade" id="modal-lookup-pesquisa-contrato-apoio" data-uuid="">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal" aria-hidden="true" onclick="fechaModalPesquisaContratoApoio();">&times;</button>
			<h3 class="title">
				<fmt-message key="gerenciaportfolio.vinculoContrato" />
			</h3>
		</div>
		
		<div class="modal-body modal-body-max-height">
			<form name='formPesquisaContratoApoio'>
				<cit:findField formName='formPesquisaContratoApoio' lockupName='LOOKUP_CONTRATOS_APOIO_ATIVOS' id='LOOKUP_CONTRATOS_APOIO_VINCULAR' heigth='400' javascriptCode='true' htmlCode='true'/>
			</form>
		</div>
	</div>
	<!-- [FIM MODAIS] -->
</div>
<!-- [FIM] gerenciamentoPortfolioContratosApoio.jsp -->