diff --git a/src/pretix/control/forms/orders.py b/src/pretix/control/forms/orders.py index 5c468497e..4b27e427e 100644 --- a/src/pretix/control/forms/orders.py +++ b/src/pretix/control/forms/orders.py @@ -88,3 +88,9 @@ class OrderPositionChangeForm(forms.Form): def clean(self): if self.cleaned_data.get('operation') == 'price' and not self.cleaned_data.get('price', '') != '': raise ValidationError(_('You need to enter a price if you want to change the product price.')) + + +class OrderContactForm(forms.ModelForm): + class Meta: + model = Order + fields = ['email'] diff --git a/src/pretix/control/logdisplay.py b/src/pretix/control/logdisplay.py index 8f2672bd1..ad54d03ce 100644 --- a/src/pretix/control/logdisplay.py +++ b/src/pretix/control/logdisplay.py @@ -59,6 +59,8 @@ def pretixcontrol_logentry_display(sender: Event, logentry: LogEntry, **kwargs): 'pretix.event.order.invoice.regenerated': _('The invoice has been regenerated.'), 'pretix.event.order.invoice.reissued': _('The invoice has been reissued.'), 'pretix.event.order.comment': _('The order\'s internal comment has been updated.'), + 'pretix.event.order.contact.changed': _('The email address has been changed.'), + 'pretix.event.order.payment.changed': _('The payment method has been changed.'), } if logentry.action_type in plains: return plains[logentry.action_type] diff --git a/src/pretix/control/templates/pretixcontrol/order/change_contact.html b/src/pretix/control/templates/pretixcontrol/order/change_contact.html new file mode 100644 index 000000000..3036862a1 --- /dev/null +++ b/src/pretix/control/templates/pretixcontrol/order/change_contact.html @@ -0,0 +1,27 @@ +{% extends "pretixcontrol/event/base.html" %} +{% load i18n %} +{% load bootstrap3 %} +{% block title %} + {% trans "Change contact information" %} +{% endblock %} +{% block content %} +