2019-03-21 17:15:06 +01:00
|
|
|
{% extends '@CadolesCore/base.html.twig' %}
|
2018-12-18 09:44:39 +01:00
|
|
|
|
|
|
|
{% block pagewrapper %}
|
2022-12-09 11:50:38 +01:00
|
|
|
<h1 class="page-header">{%if infotitle is defined%}{{infotitle}}{%else%}Inscriptions{%endif%}</h1>
|
2018-12-18 09:44:39 +01:00
|
|
|
|
|
|
|
<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 %}
|
2022-12-09 09:18:52 +01:00
|
|
|
|
|
|
|
{% 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 %}
|
2018-12-18 09:44:39 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block localjavascript %}
|
|
|
|
|
|
|
|
{% if mode=="success" %}
|
|
|
|
$(document).ready(function() {
|
2019-06-14 15:07:54 +02:00
|
|
|
// Redirection vers la mire d'authentification
|
|
|
|
setTimeout(function(){
|
2021-04-02 10:07:45 +02:00
|
|
|
{% if redirectto is defined and redirectto is not null %}
|
|
|
|
window.location.href="{{ redirectto }}";
|
|
|
|
{% elseif mode_auth == "SAML" %}
|
2019-06-14 15:07:54 +02:00
|
|
|
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);
|
2018-12-18 09:44:39 +01:00
|
|
|
});
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
|