<!DOCTYPE html>
<html lang="pt-br">
	<head>
		{{!>conteudo_head}}
		{{>headerMetronic6}}
		<script {{#main.NonceToken}}nonce="{{main.NonceToken}}"{{/main.NonceToken}}>
			{{#main.session.ModoDebug}}
			console.log({{{Scope}}});
			window.onerror = function(message, source, lineno, colno, error) {
					alert(` Message: ${message}\n\n Line: ${lineno}\n\n Column: ${colno}\n\n Error: ${error}\n\n Source ${source}\n`);
				}; 
			{{/main.session.ModoDebug}}
		</script>
		{{>GoogleTag}}

	</head>
	<body class="footer-fixed header-fixed header-mobile-fixed subheader-enabled subheader-fixed subheader-mobile-fixed">
		<div data-create-session data-session="{{>dataSession}}"></div>
		
		<!-- begin: Header Mobile-->
		{{>headerMobile}}
		<!-- end: Header Mobile-->
		<div class="d-flex flex-column flex-root">
			<div class="d-flex flex-row flex-column-fluid page">
				<div class="d-flex flex-column flex-row-fluid wrapper {{#Scope.isIntegration}} padding-modal background-modal {{/Scope.isIntegration}}" id="kt_wrapper">
					{{>header}}
						<!-- begin: Subheader -->
						{{>subheader}}
						<!-- end: Subheader-->
						<!-- begin: Content -->
						<div class="d-flex flex-column-fluid content" id="conteudo">
							<div class="container-fluid">
								<div class="card card-custom">
									<div class="card-header">
										<h3 class="h2 card-title">{{Scope.DefinicaoObjetos.Caption}}</h3>
									</div>
									<div class="card-body">				
										<div id="gridTools"></div>	
										<div id="dataGrid"></div>
									</div>
								</div>
							</div>
						</div>
						<!-- end: Content -->
				</div>
			</div>				
			{{>CadGridModal}}
			{{>ConsultaModal}}
		</div>

		{{!>scripts}}
		{{#Scope.DefinicaoObjetos}}
			{{>ScriptFormCreate}}
		{{/Scope.DefinicaoObjetos}}

		<script {{#main.NonceToken}}nonce="{{main.NonceToken}}"{{/main.NonceToken}} data-remove-script="true">
			{
				dynamicDependencies.push({
					moduleName: 'PageScripts/Consulta',
					importName: 'runEndPageScript',
					execute: true,
					params: {
						scope: [{{{Scope}}}][0]
					}
				});
			}
		</script>

		{{#Scope.DefinicaoObjetos.JavaScript}} <script {{#main.NonceToken}}nonce="{{main.NonceToken}}"{{/main.NonceToken}}>{{{.}}}</script> {{/Scope.DefinicaoObjetos.JavaScript}}
		{{>cookiesBar}}	
		{{>scriptsMetronic6}}

	</body>
</html>