File: selectsource.twig

package info (click to toggle)
simplesamlphp 1.19.7-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 42,920 kB
  • sloc: php: 202,044; javascript: 14,867; xml: 2,700; sh: 225; perl: 82; makefile: 70; python: 5
file content (23 lines) | stat: -rw-r--r-- 1,033 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{% set pagetitle = '{multiauth:multiauth:select_source_header}'|trans %}
{% extends "base.twig" %}

{% block content %}
    <h2>{{ '{multiauth:multiauth:select_source_header}'| trans }}</h2>
    <p>{{ '{multiauth:multiauth:select_source_text}'| trans }}</p>

    <form action="{{ selfUrl|escape('html') }}" method="get">
        <input type="hidden" name="AuthState" value="{{ authstate|escape('html') }}">
        <ul>
        {% for key, source in sources %}
            {% set name = ('src-' ~ source.source64) %}
            {% set button = ('button-' ~ source.source) %}
	    <li class="{{ source.css_class|escape('html') }} authsource">
            <input type="submit" name="{{ name|escape('html') }}" id="{{ button|escape('html') }}" value="{{ source.text|escape('html') }}"{%- if source.source == preferred %} autofocus{% endif -%}>
            {% if source.help %}
              <p>{{ source.help|escape('html') }}</p>
            {% endif %}
            </li>
        {% endfor %}
        </ul>
    </form>
{% endblock %}