51 lines
2.0 KiB
Twig
51 lines
2.0 KiB
Twig
{% extends '@CadolesCore/base.html.twig' %}
|
|
|
|
{% block pagewrapper %}
|
|
<h1 class="page-header">{%if infotitle is defined%}{{infotitle}}{%else%}Inscriptions{%endif%}</h1>
|
|
|
|
<div style="padding-top:50px;max-width: 1000px; margin:auto; font-size:18px;">
|
|
<div class='alert alert-{{ mode }}' style='margin: 5px 0px'>
|
|
{% autoescape %}
|
|
<p>{{ info|raw }}</p>
|
|
{% endautoescape %}
|
|
|
|
{% if mode=="error" %}
|
|
{% if mode_auth == "SAML" %}
|
|
<a class="btn btn-primary" href="{{ path("lightsaml_sp.logout") }}">Déconnexion</a>
|
|
{% elseif mode_auth == "CAS" %}
|
|
<a class="btn btn-primary" href="{{ path("cas_sp.logout") }}">Déconnexion</a>
|
|
{% elseif mode_auth == "SQL" %}
|
|
<a class="btn btn-primary" href="{{ path("cadoles_core_logout") }}">Déconnexion</a>
|
|
{% elseif mode_auth == "LDAP" %}
|
|
<a class="btn btn-primary" href="{{ path("cadoles_core_ldap_logout") }}">Déconnexion</a>
|
|
{% endif %}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block localjavascript %}
|
|
|
|
{% if mode=="success" %}
|
|
$(document).ready(function() {
|
|
// Redirection vers la mire d'authentification
|
|
setTimeout(function(){
|
|
{% if redirectto is defined and redirectto is not null %}
|
|
window.location.href="{{ redirectto }}";
|
|
{% elseif mode_auth == "SAML" %}
|
|
window.location.href="{{ path("lightsaml_sp.login") }}";
|
|
{% elseif mode_auth == "CAS" %}
|
|
window.location.href="{{ path("cas_sp.login") }}";
|
|
{% elseif mode_auth == "SQL" %}
|
|
window.location.href="{{ path("cadoles_core_login") }}";
|
|
{% elseif mode_auth == "LDAP" %}
|
|
window.location.href="{{ path("cadoles_core_ldap_login") }}";
|
|
{% endif %}
|
|
|
|
|
|
}, 6000);
|
|
});
|
|
{% endif %}
|
|
{% endblock %}
|
|
|