From 9e9dc6b4bd631e5556859460d34f1299c910f723 Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Fri, 13 Mar 2026 12:49:57 -0300 Subject: [PATCH] add app_gateway_policy_form template --- app_gateway/views.py | 2 +- .../app_gateway/app_gateway_policy_form.html | 40 +++++++++++++++++++ 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 templates/app_gateway/app_gateway_policy_form.html diff --git a/app_gateway/views.py b/app_gateway/views.py index 6bd2725..fe96609 100644 --- a/app_gateway/views.py +++ b/app_gateway/views.py @@ -195,7 +195,7 @@ def view_manage_access_policy(request): 'title': title, 'page_title': title, } - return render(request, 'generic_form.html', context) + return render(request, 'app_gateway/app_gateway_policy_form.html', context) @login_required diff --git a/templates/app_gateway/app_gateway_policy_form.html b/templates/app_gateway/app_gateway_policy_form.html new file mode 100644 index 0000000..df995b1 --- /dev/null +++ b/templates/app_gateway/app_gateway_policy_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