-
+ {% blocktranslate trimmed asvar title with evaluation_name=evaluation.full_name %}
+ Request account creation for {{ evaluation_name }}{% endblocktranslate %}
+ {% translate 'Please tell us which new account we should create. We need the name and email for all new accounts.' as teaser %}
+ {% translate 'Request creation of new account' as show_button_text %}
+ {% include 'contact_modal.html' with form_id="create-participant-account-form" modal_id='createParticipantAccountRequestModal' form_id='create-participant-account-form' user=request.user title=title teaser=teaser show_button_text=show_button_text show_button_class="btn btn-sm btn-light mb-3" %}
{% else %}
-
+ {% blocktranslate asvar title with evaluation_name=evaluation.full_name %}Request evaluation
+ changes for {{ evaluation_name }}{% endblocktranslate %}
+ {% translate 'Please tell us what changes to the evaluation we should make.' as teaser %}
+ {% translate 'Request changes' as show_button_text %}
+ {% include 'contact_modal.html' with form_id="change-evaluation-form" modal_id='changeEvaluationRequestModal' form_id='change-evaluation-form' user=request.user title=title teaser=teaser show_button_text=show_button_text show_button_class="btn btn-sm btn-light" %}
{% endif %}
@@ -150,22 +154,15 @@
{% translate 'Preview' %}
{% endif %}
-{% endblock %}
-
-{% block modals %}
- {{ block.super }}
-
- {% blocktranslate trimmed asvar title with evaluation_name=evaluation.full_name %}
- Request account creation for {{ evaluation_name }}
- {% endblocktranslate %}
- {% translate 'Please tell us which new account we should create. We need the name and email for all new accounts.' as teaser %}
- {% include 'contact_modal.html' with modal_id='createAccountRequestModal' user=request.user title=title teaser=teaser %}
-
- {% blocktranslate trimmed asvar title with evaluation_name=evaluation.full_name %}
- Request evaluation changes for {{ evaluation_name }}
- {% endblocktranslate %}
- {% translate 'Please tell us what changes to the evaluation we should make.' as teaser %}
- {% include 'contact_modal.html' with modal_id='changeEvaluationRequestModal' user=request.user title=title teaser=teaser %}
+
+
+
{% endblock %}
{% block additional_javascript %}
diff --git a/evap/contributor/tests/test_views.py b/evap/contributor/tests/test_views.py
index 4db2451b10..5fba70e06f 100644
--- a/evap/contributor/tests/test_views.py
+++ b/evap/contributor/tests/test_views.py
@@ -243,10 +243,11 @@ def test_contact_modal_escape(self):
Regression test for #1060
"""
self.evaluation.name_en = "Adam & Eve"
+ self.evaluation.allow_editors_to_edit = False
self.evaluation.save()
page = self.app.get(self.url, user=self.responsible, status=200)
- self.assertIn("changeEvaluationRequestModalLabel", page)
+ self.assertIn("changeEvaluationRequestModalSubject", page)
self.assertNotIn("Adam & Eve", page)
self.assertIn("Adam & Eve", page)
diff --git a/evap/evaluation/templates/base.html b/evap/evaluation/templates/base.html
index 0738d38c09..4d653a725b 100644
--- a/evap/evaluation/templates/base.html
+++ b/evap/evaluation/templates/base.html
@@ -29,11 +29,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 %}
{% 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 %}
+ {% translate "Problems/Feedback" as show_button_text %}
+ {% include 'contact_modal.html' with form_id="feedback-form" modal_id='feedbackModal' user=request.user title=title teaser=teaser show_button_text=show_button_text show_button_class="btn btn-dark" anonymous_mode_enabled=allow_anonymous_feedback_messages %}
{% endif %}
+
+
+ {% translate 'Request user setting changes' as title %}
+ {% translate 'Please tell us which of your settings we should change.' as teaser %}
+ {% translate "Request changes" as show_button_text %}
+ {% include 'contact_modal.html' with form_id="request-changes-form" modal_id='requestChangesModal' user=request.user title=title teaser=teaser show_button_text=show_button_text show_button_class="btn btn-light" %}
-
-{% endblock %}
-
-{% block modals %}
- {{ block.super }}
- {% translate 'Request user setting changes' as title %}
- {% translate 'Please tell us which of your settings we should change.' as teaser %}
- {% include 'contact_modal.html' with modal_id='changeRequestModal' user=request.user title=title teaser=teaser %}
+