diff --git a/src/pretix/api/serializers/event.py b/src/pretix/api/serializers/event.py index 7a2e9fbc67..55faed33b1 100644 --- a/src/pretix/api/serializers/event.py +++ b/src/pretix/api/serializers/event.py @@ -618,6 +618,7 @@ class EventSettingsSerializer(serializers.Serializer): 'cancel_allow_user_paid_keep_fees', 'cancel_allow_user_paid_keep_percentage', 'cancel_allow_user_paid_adjust_fees', + 'cancel_allow_user_paid_adjust_fees_explanation', 'cancel_allow_user_paid_refund_as_giftcard', 'cancel_allow_user_paid_require_approval', ] diff --git a/src/pretix/base/settings.py b/src/pretix/base/settings.py index 2c20759e64..af7085a0f8 100644 --- a/src/pretix/base/settings.py +++ b/src/pretix/base/settings.py @@ -966,6 +966,23 @@ DEFAULTS = { help_text=_("With this option enabled, your customers can choose to get a smaller refund to support you.") ) }, + 'cancel_allow_user_paid_adjust_fees_explanation': { + 'default': LazyI18nString.from_gettext(gettext_noop( + 'However, if you want us to help keep the lights on here, please consider using the slider below to ' + 'request a smaller refund. Thank you!' + )), + 'type': LazyI18nString, + 'serializer_class': I18nField, + 'form_class': I18nFormField, + 'form_kwargs': dict( + label=_("Voluntary lower refund explanation"), + widget=I18nTextarea, + widget_kwargs={'attrs': {'rows': '2'}}, + help_text=_("This text will be shown in between the explanation of how the refunds work and the slider " + "which your customers can use to choose the amount they would like to receive. You can use it " + "e.g. to explain choosing a lower refund will help your organisation.") + ) + }, 'cancel_allow_user_paid_require_approval': { 'default': 'False', 'type': bool, diff --git a/src/pretix/control/forms/event.py b/src/pretix/control/forms/event.py index b1a410cb19..4a3461852c 100644 --- a/src/pretix/control/forms/event.py +++ b/src/pretix/control/forms/event.py @@ -572,6 +572,7 @@ class CancelSettingsForm(SettingsForm): 'cancel_allow_user_paid_keep_fees', 'cancel_allow_user_paid_keep_percentage', 'cancel_allow_user_paid_adjust_fees', + 'cancel_allow_user_paid_adjust_fees_explanation', 'cancel_allow_user_paid_refund_as_giftcard', 'cancel_allow_user_paid_require_approval', ] diff --git a/src/pretix/control/templates/pretixcontrol/event/cancel.html b/src/pretix/control/templates/pretixcontrol/event/cancel.html index 48be7ccc21..4aca9ba133 100644 --- a/src/pretix/control/templates/pretixcontrol/event/cancel.html +++ b/src/pretix/control/templates/pretixcontrol/event/cancel.html @@ -20,7 +20,21 @@ {% bootstrap_field form.cancel_allow_user_paid_keep_percentage layout="control" %} {% bootstrap_field form.cancel_allow_user_paid_keep_fees layout="control" %} {% bootstrap_field form.cancel_allow_user_paid_until layout="control" %} - {% bootstrap_field form.cancel_allow_user_paid_adjust_fees layout="control" %} +
+
+
+ +
+
+ {{ form.cancel_allow_user_paid_adjust_fees.help_text }} +
+
+
+
+ {% bootstrap_field form.cancel_allow_user_paid_adjust_fees_explanation layout="control" %} +
{% bootstrap_field form.cancel_allow_user_paid_refund_as_giftcard layout="control" %} {% if not gets_notification %}
diff --git a/src/pretix/presale/templates/pretixpresale/event/order_cancel.html b/src/pretix/presale/templates/pretixpresale/event/order_cancel.html index 1d62afdaf3..831584d6f0 100644 --- a/src/pretix/presale/templates/pretixpresale/event/order_cancel.html +++ b/src/pretix/presale/templates/pretixpresale/event/order_cancel.html @@ -3,6 +3,7 @@ {% load money %} {% load eventurl %} {% load l10n %} +{% load rich_text %} {% block title %}{% trans "Cancel order" %}{% endblock %} {% block content %}

@@ -48,7 +49,9 @@ If you want, you can request a full refund. {% endblocktrans %} {% endif %} - {% trans "However, if you want us to help keep the lights on here, please consider using the slider below to request a smaller refund. Thank you!" %} +

+

+ {{ request.event.settings.cancel_allow_user_paid_adjust_fees_explanation|rich_text }}

Enter how much we can keep: