From 197186b223b8f7a0e2893cf5d20bfe0c2bd82527 Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Thu, 12 Mar 2026 10:02:47 -0300 Subject: [PATCH] add gatekeeper authentication method form template --- gatekeeper/views.py | 2 +- .../gatekeeper_auth_method_form.html | 40 +++++++++++++++++++ 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 templates/gatekeeper/gatekeeper_auth_method_form.html diff --git a/gatekeeper/views.py b/gatekeeper/views.py index 0a174e0..e7877ab 100644 --- a/gatekeeper/views.py +++ b/gatekeeper/views.py @@ -196,7 +196,7 @@ def view_manage_auth_method(request): 'page_title': title, 'form_description': form_description, } - return render(request, 'generic_form.html', context) + return render(request, 'gatekeeper/gatekeeper_auth_method_form.html', context) @login_required diff --git a/templates/gatekeeper/gatekeeper_auth_method_form.html b/templates/gatekeeper/gatekeeper_auth_method_form.html new file mode 100644 index 0000000..df995b1 --- /dev/null +++ b/templates/gatekeeper/gatekeeper_auth_method_form.html @@ -0,0 +1,40 @@ +{% extends 'base.html' %} +{% load crispy_forms_tags %} + +{% block content %} +
+
+
+ {% if page_title %} +
+

{{ page_title }}

+
+ {% endif %} +
+
+ {% csrf_token %} + {% crispy form %} +
+
+
+
+ + {% if form_description %} +
+
+ +
+
+ {{ form_description.content|safe }} +
+
+
+
+ {% endif %} + +
+{% endblock %} + +{% block custom_page_scripts %} + +{% endblock %} \ No newline at end of file