feat(atm-plataforma): tela de login Athletic Map

This commit is contained in:
deploy
2026-10-14 20:25:22 +00:00
parent 7e13e6a547
commit 4a758d4d1b
+22 -1
View File
@@ -863,9 +863,30 @@ data:
<#if traceId??>
<p id="traceId" class="detalhe">Se falar com o suporte, informe este c&oacute;digo: <code>${traceId}</code></p>
</#if>
<#--
"Voltar para o login" SEMPRE (pedido do dono, 14/10/2026). Antes o botao so aparecia com o client conhecido, e
no erro mais comum ("Cookie de reinicio de login nao encontrado") o Keycloak ja perdeu a sessao e nao sabe o
client: a tela ficava sem saida. Ordem: o endereco do client (quando ha); senao o endereco da escola deste
realm; senao, voltar uma pagina no navegador. O sistema da escola refaz o login sozinho ao abrir.
-->
<#assign escolas = {
"athleticmap": "https://plataforma.athleticmap.com/",
"athleticmap-1": "https://piloto.athleticmap.com/",
"athleticmap-2": "https://demo.athleticmap.com/",
"athleticmap-3": "https://acme.athleticmap.com/",
"athleticmap-4": "https://escolinha.athleticmap.com/",
"athleticmap-6": "https://escolinha-de-teste.athleticmap.com/",
"athleticmap-7": "https://escolinha-de-teste-2.athleticmap.com/",
"athleticmap-8": "https://zico-0.athleticmap.com/",
"athleticmap-9": "https://teste5.athleticmap.com/"
}>
<#if !skipLink??>
<#if client?? && client.baseUrl?has_content>
<a id="backToApplication" class="botao entrar" href="${client.baseUrl}">${layout.semSeta(msg("backToApplication"))}</a>
<a id="backToApplication" class="botao entrar" href="${client.baseUrl}">Voltar para o login</a>
<#elseif realm?? && escolas[realm.name]??>
<a id="backToApplication" class="botao entrar" href="${escolas[realm.name]}">Voltar para o login</a>
<#else>
<a id="backToApplication" class="botao entrar" href="javascript:history.back()">Voltar para o login</a>
</#if>
</#if>
</div>