ninegate/src/ninegate-1.0/src/Cadoles/CoreBundle/Resources/views/Core/reconnect.html.twig

73 lines
1.6 KiB
Twig

{% extends '@CadolesCore/base.html.twig' %}
{% block localstyle %}
.thumbnail img {
width:200px;
border: 5px solid #fff;
border-radius: 10px;
}
.caption {
margin-top: -15px;
}
.caption p {
text-align:justify;
font-size:14px;
word-wrap: break-word;
}
.caption ul {
margin-top:-10px;
padding-left: 20px;
}
.caption li {
text-align:left;
font-size:14px;
word-wrap: break-word;
font-style: italic;
}
{% endblock %}
{% block pagewrapper %}
<div style="width: 400px;margin: auto;text-align: center;margin-top: 50px;">
<img id="logo" src="/{{ alias }}/{{ app.session.get('logo') }}">
<h1>{{ app.session.get('appname') }}</h1>
<h2>Vous avez perdu votre connexion</h2>
ou
<h2>Vous n'avez plus accès à cette page</h2>
<br><br>
Vous allez être redirigé vers la page d'accueil
<br>
</div>
{% endblock %}
{% block localjavascript %}
$('document').ready(function(){
setTimeout(function(){
//parent.location.reload();
{% if redirectto is defined %}
console.log("{{ redirectto }}");
console.log("{{ mode_auth }}");
{% if mode_auth == "CAS" %}
parent.location.href = "{{ path("cas_sp.login", {redirect:redirectto}) }}";
{% else %}
parent.location.href = "{{ path("cadoles_core_home") }}";
{% endif %}
{% else %}
//parent.location.href = "{{ path("cadoles_core_home") }}";
{% endif %}
}, 2000);
});
{% endblock %}