-
+ {% blocktranslate 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 modal_id='createParticipantAccountRequestModal' 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 modal_id='changeEvaluationRequestModal' user=request.user title=title teaser=teaser show_button_text=show_button_text show_button_class="btn btn-sm btn-light" %}
{% endif %}
@@ -130,18 +132,6 @@
{% translate 'Preview' %}
{% endif %}
{% endblock %}
-{% block modals %}
- {{ block.super }}
-
- {% blocktranslate 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 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 %}
{% include 'evap_evaluation_edit_js.html' %}
diff --git a/evap/contributor/tests/test_views.py b/evap/contributor/tests/test_views.py
index 4db2451b10..56069a4033 100644
--- a/evap/contributor/tests/test_views.py
+++ b/evap/contributor/tests/test_views.py
@@ -246,7 +246,7 @@ def test_contact_modal_escape(self):
self.evaluation.save()
page = self.app.get(self.url, user=self.responsible, status=200)
- self.assertIn("changeEvaluationRequestModalLabel", page)
+ self.assertIn("createContributorAccountRequestModalTitle", 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 c3f18eb0f1..7ed8493571 100644
--- a/evap/evaluation/templates/base.html
+++ b/evap/evaluation/templates/base.html
@@ -31,11 +31,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 %}
+
+ {% 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 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 %}
+