From 9345a4c5926641dd9932b0217c19beb472f3837d Mon Sep 17 00:00:00 2001 From: styrix560 Date: Mon, 2 Feb 2026 20:31:28 +0100 Subject: [PATCH 01/22] wip --- evap/evaluation/templates/base.html | 8 -- evap/evaluation/templates/contact_modal.html | 101 +++++++++++++------ evap/evaluation/templates/footer.html | 7 +- evap/static/ts/src/contact_modal.ts | 69 ------------- 4 files changed, 72 insertions(+), 113 deletions(-) delete mode 100644 evap/static/ts/src/contact_modal.ts diff --git a/evap/evaluation/templates/base.html b/evap/evaluation/templates/base.html index c3f18eb0f1..fec611c7e1 100644 --- a/evap/evaluation/templates/base.html +++ b/evap/evaluation/templates/base.html @@ -30,14 +30,6 @@ {% include "custom_elements.html" %} - {% block modals %} - {% if user.is_authenticated %} - {% translate 'Feedback' as title %} - {% translate 'You are welcome to submit feedback regarding the evaluation platform or specific evaluations. Please let us know how we can improve your experience on EvaP.' as teaser %} - {% include 'contact_modal.html' with modal_id='feedbackModal' user=request.user title=title teaser=teaser %} - {% endif %} - {% endblock %} -
{% include_navbar user LANGUAGE_CODE %} diff --git a/evap/evaluation/templates/contact_modal.html b/evap/evaluation/templates/contact_modal.html index b0d77ab18c..f4c54e97cc 100644 --- a/evap/evaluation/templates/contact_modal.html +++ b/evap/evaluation/templates/contact_modal.html @@ -13,43 +13,78 @@
- -
- +{# custom_success_form #} + + {% csrf_token %} + + + {{ title }} {{ teaser }} {% translate 'Send Message' %} @@ -24,9 +28,9 @@