From a943d060d2a92b902fb2183859ea5691630aba42 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 12 Jul 2020 18:24:36 +0200 Subject: [PATCH] core: add separate autosubmit form for use without flows --- .../generic/autosubmit_form_full.html | 34 +++++++++++++++++++ passbook/sources/saml/views.py | 2 +- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 passbook/core/templates/generic/autosubmit_form_full.html diff --git a/passbook/core/templates/generic/autosubmit_form_full.html b/passbook/core/templates/generic/autosubmit_form_full.html new file mode 100644 index 000000000..687e76565 --- /dev/null +++ b/passbook/core/templates/generic/autosubmit_form_full.html @@ -0,0 +1,34 @@ +{% extends "login/base_full.html" %} + +{% load passbook_utils %} +{% load i18n %} + +{% block title %} +{{ title }} +{% endblock %} + +{% block card %} +
+ {% csrf_token %} + {% for key, value in attrs.items %} + + {% endfor %} +
+
+ + + + + +
+
+
+
+ +
+
+
+ +{% endblock %} diff --git a/passbook/sources/saml/views.py b/passbook/sources/saml/views.py index 889099596..313d27d8c 100644 --- a/passbook/sources/saml/views.py +++ b/passbook/sources/saml/views.py @@ -53,7 +53,7 @@ class InitiateView(View): if source.binding_type == SAMLBindingTypes.POST_AUTO: return render( request, - "generic/autosubmit_form.html", + "generic/autosubmit_form_full.html", { "title": _("Redirecting to %(app)s..." % {"app": source.name}), "attrs": {"SAMLRequest": saml_request, "RelayState": relay_state},