From 827c7c0edfa051add698b4a3a1b185513ad624f6 Mon Sep 17 00:00:00 2001 From: Thijs Kinkhorst <thijs@kinkhorst.com> Date: Fri, 18 Oct 2019 07:22:12 +0000 Subject: [PATCH] Add twig template for cardinality error --- modules/core/templates/cardinality_error.twig | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 modules/core/templates/cardinality_error.twig diff --git a/modules/core/templates/cardinality_error.twig b/modules/core/templates/cardinality_error.twig new file mode 100644 index 000000000..30b864c0f --- /dev/null +++ b/modules/core/templates/cardinality_error.twig @@ -0,0 +1,25 @@ +{% set pagetitle = 'Incorrect Attributes' | trans %} +{% extends "base.twig" %} +{% block content %} + +<h1>{{ pagetitle }}</h1> + +<p>{% trans 'One or more of the attributes supplied by your identity provider did not contain the expected number of values.' %}</p> + +<h3>{% trans 'The problematic attribute(s) are:' %}</h3> + +<dl class="cardinalityErrorAttributes"> +{% for attr,issues in cardinalityErrorAttributes %} + {% set got = issues[0] %} + {% set want = issues[1] %} + + <dt>{{ attr }}</dt> + <dd>{% trans %}got {{ got }} values, want {{ want }}{% endtrans %}</dd> +{% endfor %} +</dl> + +{% if LogoutURL is defined %} + <p><a href="{{ LogoutURL }}">{% trans 'Logout' %}</a></p> +{% endif %} + +{% endblock %} -- GitLab