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

<!-- INÍCIO gerenciamentoPortfolioAtributosFinanceiros.jsp -->
<div class='row-fluid'>
	<div class='span12'>
		<form name='formAtributosFinanceiro' id="formAtributosFinanceiro"
				action='${ctx}/pages/gerenciamentoPortfolio/gerenciamentoPortfolioAtributosFinanceiros/gerenciamentoPortfolioAtributosFinanceiros'
				enctype="multipart/form-data">
			<input type="hidden" id="idServicoSelecionado" name="idServicoSelecionado"/>
			<input type="hidden" id="idServico" name="idServico"/>
			<input type="hidden" id="idTipoSelect" name="idTipoSelect"/>
			<input type="hidden" id="idFinanceiroServico" name="idFinanceiroServico"/>
			<input type="hidden" id="paginaSelecionada" name="paginaSelecionada"/>
			<input type='hidden' name='formato' id='formato' />
			<div class="row-fluid">
				<div class='row-fluid'>
					<div class='span2'>
						<label class="strong campoObrigatorio"><fmt:message key="gerenciaportfolio.atributosFinanceiros.categoria" /></label>
						<select class="span12 Valid[Required] Description[gerenciaportfolio.atributosFinanceiros.categoria]" id="idTipo" name="idTipo" onchange="selecionaClassificacaoPadrao()">
						</select>
					</div>
					<div class='span2'>
						<label class="strong campoObrigatorio"><fmt:message key="gerenciaportfolio.atributosFinanceiros.tipo" /></label>
						<select class="span12 Valid[Required] Description[gerenciaportfolio.atributosFinanceiros.tipo]" id="perfilFinanceiro" name="perfil" onchange="atualizaCategoria();">
						</select>
					</div>
					<div class='span2' id='divClassificacao'>
						<label class="strong"><fmt:message key="citcorpore.comum.classificacao" /></label>
						<select class="span12 Valid[Required] Description[citcorpore.comum.classificacao]" id="idClassificacao" name="idClassificacao">
						</select>
					</div>
					<div class='span2'>
						<label class="strong campoObrigatorio"><fmt:message key="gerenciaportfolio.atributosFinanceiros.valor" /></label>
						<input type="text" class="span12 Valid[Required] Description[gerenciaportfolio.atributosFinanceiros.valor] Format[Moeda]" maxlength="10" id="valor" name="valor" >
					</div>
				</div>
				<div class='row-fluid'>
					<div class='span6'>
						<button style="display:none; margin-top:23px; padding-right: 15px;" type='button' id='btnEditarFinanceiro' class="botaoNovo lFloat btn btn-icon btn-primary glyphicons pencil btnGravar" onclick="clickSalvarEditar();"><i></i> <fmt:message key="citcorpore.comum.editar" /></button>
						<button style="margin-top:23px;" type='button' id='btnNovoFinanceiro' class="botaoNovo lFloat btn btn-icon btn-primary glyphicons circle_plus btnGravar" onclick="clickAdicionaFinanceiro();"><i></i> <fmt:message key="gerenciaportfolio.atributosFinanceiros.btnAdicionarServico" /></button>
						<button style="margin-top:23px;" type='button' id='btnNovoTipoFinanceiro' class="botaoNovo lFloat btn btn-icon btn-warning glyphicons circle_plus" onclick="clickNovoTipoFinanceiro();"><i></i> <fmt:message key="gerenciaportfolio.atributosFinanceiros.btnRegistrarTipo" /></button>
						<button style="margin-top:23px;" type='button' id='btnNovoTipoFinanceiro' class="botaoNovo lFloat btn btn-icon btn-default glyphicons circle_plus" onclick="abrirModalImportar();"><i></i> <fmt:message key="citcorpore.comum.importar" /></button>
					</div>
				</div>
				<div class="separator"></div>
				<div class='row-fluid' id="tabelaFinanceiro">
				</div>
			</div>

    	</form>
		<div class="modal modal-small hide fade" id="modal-popup-cadastro-tipo-financeiro" data-uuid="">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true" onclick="fechaModalPopupCadastroTipoFinanceiro();">&times;</button>
				<h3 class="title">
					<fmt-message key="gerenciaportfolio.atributosFinanceiros.cadastroTipoFinanceiro" />
				</h3>
			</div>
				
			<div class="modal-body">
				<%@include file="cadastroTipoFinanceiro/cadastroTipoFinanceiro.jsp" %>
			</div>
			
			<div class="modal-footer">
				<div class="row-fluid">
					<div class="span4">
						<button class="btn btn-block btn-default"
							onclick="fechaModalPopupCadastroTipoFinanceiro();">
							<fmt:message key="citcorpore.comum.cancelar" />
						</button>
					</div>
				</div>
			</div>
		</div>
		

		<!-- MODAL PARA IMPORTAR ARQUIVOS -->

		<div class="modal modal-big hide fade in" id="modal_importarAtributos" aria-hidden="false">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
				<h3><fmt:message key="citcorpore.comum.importar" /></h3>
			</div>
			<div class="modal-body">
				<div id="conteudoframeImportarAtributos">
					<iframe id="frameImportarAtributos" src="about:blank" width="99%" height="530" class="iframeSemBorda"></iframe>
				</div>
			</div>
			<div class="modal-footer">
				<a href="#" class="btn " data-dismiss="modal"><fmt:message key="citcorpore.comum.fechar" /></a>
			</div>
		</div>

	</div>

</div>

<!-- FIM gerenciamentoPortfolioAtributosFinanceiros.jsp -->
