<%@ include file="/init.jsp"%>

<%@ page
	import="mprj.doerj.caderno.configuration.DoerjCadernoPortletConfiguration"%>
<%@ page import="com.liferay.portal.kernel.util.Constants"%>
<%
	String urlOrgao = portletPreferences.getValue("urlOrgao", "");

	String PGJConfig = portletPreferences.getValue("PGJConfig", "");

	String CGMPConfig = portletPreferences.getValue("CGMPConfig", "");

	String SGJAConfig = portletPreferences.getValue("SGJAConfig", "");

	String SGJPIConfig = portletPreferences.getValue("SGJPIConfig", "");

	String SGJACIConfig = portletPreferences.getValue("SGJACIConfig", "");

	String SGJACDHConfig = portletPreferences.getValue("SGJACDHConfig", "");

	String SGJRIDPConfig = portletPreferences.getValue("SGJRIDPConfig", "");

	String CGConfig = portletPreferences.getValue("CGConfig", "");

	String CJConfig = portletPreferences.getValue("CJConfig", "");

	String AEConfig = portletPreferences.getValue("AEConfig", "");

	String CMPROCJConfig = portletPreferences.getValue("CMPROCJConfig", "");

	String CMPROMJConfig = portletPreferences.getValue("CMPROMJConfig", "");

	String CSIConfig = portletPreferences.getValue("CSIConfig", "");

	String CEAFConfig = portletPreferences.getValue("CEAFConfig", "");

	String OUVIConfig = portletPreferences.getValue("OUVIConfig", "");

	String SGMPConfig = portletPreferences.getValue("SGMPConfig", "");

	String AAOMCConfig = portletPreferences.getValue("AAOMCConfig", "");

	String ARCCConfig = portletPreferences.getValue("ARCCConfig", "");

	String GAOMCConfig = portletPreferences.getValue("GAOMCConfig", "");

	String ARCCRIConfig = portletPreferences.getValue("ARCCRIConfig", "");

	String ACConfig = portletPreferences.getValue("ACConfig", "");

	String ADHMConfig = portletPreferences.getValue("ADHMConfig", "");

	String AAPConfig = portletPreferences.getValue("AAPConfig", "");

	String AIConfig = portletPreferences.getValue("AIConfig", "");
%>

<liferay-portlet:actionURL portletConfiguration="<%=true%>"
	var="configurationActionURL" />


<liferay-portlet:renderURL portletConfiguration="<%=true%>"
	var="configurationRenderURL" />

<aui:form action="<%=configurationActionURL%>" method="post" name="fm">
	<aui:input name="<%=Constants.CMD%>" type="hidden"
		value="<%=Constants.UPDATE%>" />

	<aui:input name="redirect" type="hidden"
		value="<%=configurationRenderURL%>" />

	<liferay-frontend:edit-form-body>
		<liferay-frontend:fieldset-group>
			<liferay-frontend:fieldset collapsible="<%=false%>" label="">


		<aui:fieldset label="Dados da Conexão com Serviço">
				<aui:input name="urlOrgao" label="URL do Serviço: " 
				style="width:500px; display:block; margin: 5px" type="text"
					value="<%=urlOrgao%>" />
		</aui:fieldset>
		
		<aui:fieldset label="Expediente">
				<aui:input name="PGJConfig" label="PROCURADOR GERAL DE JUSTIÇA: "
					style="width:500px; display:block; margin: 5px" type="text"
					value="<%=PGJConfig%>" />

				<aui:input name="CGMPConfig"
					label="CORREGEDORA GERAL DO MINISTÉRIO PÚBLICO: "
					style="width:500px; display:block; margin: 5px" type="text"
					value="<%=CGMPConfig%>" />

				<aui:input name="SGJAConfig"
					label="PROCURADORIA GERAL DE JUSTIÇA SUBPROCURADORIA GERAL DE JUSTIÇA DE ADMINISTRAÇÃO: "
					style="width:500px; display:block; margin: 5px" type="text"
					value="<%=SGJAConfig%>" />

				<aui:input name="SGJPIConfig"
					label="SUBPROCURADORIA GERAL DE JUSTIÇA DE PLANEJAMENTO INSTITUCIONAL: "
					style="width:500px; display:block; margin: 5px" type="text"
					value="<%=SGJPIConfig%>" />

				<aui:input name="SGJACIConfig"
					label="SUBPROCURADORIA GERAL DE JUSTIÇA DE ASSUNTOS CÍVEIS E INSTITUCIONAIS: "
					style="width:500px; display:block; margin: 5px" type="text"
					value="<%=SGJACIConfig%>" />

				<aui:input name="SGJACDHConfig"
					label="SUBPROCURADORIA GERAL DE JUSTIÇA DE ASSUNTOS CRIMINAIS E DE DIREITOS HUMANOS: "
					style="width:500px; display:block; margin: 5px" type="text"
					value="<%=SGJACDHConfig%>" />

				<aui:input name="SGJRIDPConfig"
					label="SUBPROCURADORIA GERAL DE JUSTIÇA DE RELAÇÕES INSTITUCIONAIS E DEFESA DE PRERROGATIVAS: "
					style="width:500px; display:block; margin: 5px" type="text"
					value="<%=SGJRIDPConfig%>" />

				<aui:input name="CGConfig" label="CHEFIA DE GABINETE: "
					style="width:500px; display:block; margin: 5px" type="text"
					value="<%=CGConfig%>" />

				<aui:input name="CJConfig" label="CONSULTORIA JURÍDICA: "
					style="width:500px; display:block; margin: 5px" type="text"
					value="<%=CJConfig%>" />

				<aui:input name="AEConfig" label="ASSESSORIA EXECUTIVA: "
					style="width:500px; display:block; margin: 5px" type="text"
					value="<%=AEConfig%>" />

				<aui:input name="CMPROCJConfig"
					label="COOREDENADORIA DE MOVIMENTAÇÃO DOS PROCURADORES DE JUSTIÇA: "
					style="width:500px; display:block; margin: 5px" type="text"
					value="<%=CMPROCJConfig%>" />

				<aui:input name="CMPROMJConfig"
					label="COORDENADORIA DE MOVIMENTAÇÃO DOS PROMOTORES DE JUSTIÇA: "
					style="width:500px; display:block; margin: 5px" type="text"
					value="<%=CMPROMJConfig%>" />

				<aui:input name="CSIConfig"
					label="COORDENADORIA DE SEGURANÇA E INTELIGÊNCIA: "
					style="width:500px; display:block; margin: 5px" type="text"
					value="<%=CSIConfig%>" />

				<aui:input name="CEAFConfig"
					label="CENTRO DE ESTUDOS E APERFEIÇOAMENTO FUNCIONAL: "
					style="width:500px; display:block; margin: 5px" type="text"
					value="<%=CEAFConfig%>" />

				<aui:input name="OUVIConfig" label="OUVIDORIA: "
					style="width:500px; display:block; margin: 5px" type="text"
					value="<%=OUVIConfig%>" />

				<aui:input name="SGMPConfig"
					label="SECRETARIA GERAL DO MINISTÉRIO PÚBLICO: "
					style="width:500px; display:block; margin: 5px" type="text"
					value="<%=SGMPConfig%>" />

				<aui:input name="AAOMCConfig"
					label="ASSESSORIA DE ATRIBUIÇÃO ORIGINÁRIA EM MATÉRIA CÍVEL: "
					style="width:500px; display:block; margin: 5px" type="text"
					value="<%=AAOMCConfig%>" />

				<aui:input name="ARCCConfig"
					label="ASSESSORIA DE RECURSOS CONSTITUCIONAIS CÍVEIS: "
					style="width:500px; display:block; margin: 5px" type="text"
					value="<%=ARCCConfig%>" />

				<aui:input name="GAOMCConfig"
					label="GRUPO DE ATRIBUIÇÃO ORIGINÁRIA EM MATÉRIA CRIMINAL: "
					style="width:500px; display:block; margin: 5px" type="text"
					value="<%=GAOMCConfig%>" />

				<aui:input name="ARCCRIConfig"
					label="ASSESSORIA DE RECURSOS CONSTITUCIONAIS CRIMINAIS: "
					style="width:500px; display:block; margin: 5px" type="text"
					value="<%=ARCCRIConfig%>" />

				<aui:input name="ACConfig" label="ASSESSORIA CRIMINAL: "
					style="width:500px; display:block; margin: 5px" type="text"
					value="<%=ACConfig%>" />

				<aui:input name="ADHMConfig"
					label="ASSESSORIA DE DIRETOS HUMANOS E DE MINORIAS: "
					style="width:500px; display:block; margin: 5px" type="text"
					value="<%=ADHMConfig%>" />

				<aui:input name="AAPConfig"
					label="ASSESSORIA DE ASSUNTOS PARLAMENTARES: "
					style="width:500px; display:block; margin: 5px" type="text"
					value="<%=AAPConfig%>" />

				<aui:input name="AIConfig" label="ASSESSORIA INTERNACIONAL: "
					style="width:500px; display:block; margin: 5px" type="text"
					value="<%=AIConfig%>" />
		</aui:fieldset>
			</liferay-frontend:fieldset>
		</liferay-frontend:fieldset-group>
	</liferay-frontend:edit-form-body>
	<liferay-frontend:edit-form-footer>
		<aui:button value="Salvar" type="submit" />
		<aui:button value="Cancelar" type="cancel" />
	</liferay-frontend:edit-form-footer>
</aui:form>
