1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
{% set pagetitle = 'Authenticate'|trans %}
{% extends "@core/base.twig" %}
{% block content %}
<h1>{{ pagetitle|trans }}</h1>
<p>Please choose one of the following authentication methods: </p>
{% if sources is empty -%}
<p>Please check your SimpleSAML configuration.<br>
Follow the link and log in with administrator credentials. <a href="{{ loginurl }}">Admin login.</a></p>
{% else %}
<div class="pure-menu custom-restricted-width">
<ul class="pure-menu-list auth_methods">
{% for id, config in sources -%}
<li class="pure-menu-item">
<a href="{{ moduleURL('core/login/' ~ id|url_encode) }}" class="pure-menu-link">
{% if config.name is defined %}
{{ config.name|translateFromArray|default(id) }}
{% else %}
{{ id }}
{% endif %}
</a>
</li>
{% endfor -%}
</ul>
</div>
{% endif %}
{% endblock %}
|