From 3a9e38e0e3e4d2f3a7bf0a848388326f7b778c55 Mon Sep 17 00:00:00 2001 From: Wolfgang Knopki <wolfgang.knopki@hft-stuttgart.de> Date: Fri, 20 Nov 2020 11:17:17 +0100 Subject: [PATCH] added selectsource for multiauth --- .../fancytheme/multiauth/selectsource.twig | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 mymodule/themes/fancytheme/multiauth/selectsource.twig diff --git a/mymodule/themes/fancytheme/multiauth/selectsource.twig b/mymodule/themes/fancytheme/multiauth/selectsource.twig new file mode 100644 index 0000000..eb9bd92 --- /dev/null +++ b/mymodule/themes/fancytheme/multiauth/selectsource.twig @@ -0,0 +1,25 @@ + GNU nano 4.8 selectsource.twig +{% set pagetitle = '{multiauth:multiauth:select_source_header}'|trans %} +{% extends "base.twig" %} + +{% block content %} + <h2>Benutzerkonto auswählen</h2> + <p>Bitte wählen Sie ein Benutzerkonto aus, mit dem Sie sich authentifizieren wollen:</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 class="button-red button-margin btn btn-primary" 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 %} + -- GitLab