mirror of
https://github.com/pretix/pretix.git
synced 2026-05-10 16:04:02 +00:00
Sendmail: Prevent confusion around setting attach_tickets (Z#23155893) (#4211)
This commit is contained in:
@@ -225,6 +225,11 @@ class OrderMailForm(BaseMailForm):
|
|||||||
]
|
]
|
||||||
self.fields['recipients'].choices = recp_choices
|
self.fields['recipients'].choices = recp_choices
|
||||||
|
|
||||||
|
if not self.event.settings.mail_attach_tickets:
|
||||||
|
self.fields['attach_tickets'].disabled = True
|
||||||
|
self.fields['attach_tickets'].help_text = _("Attachment of tickets is disabled in this event's email "
|
||||||
|
"settings.")
|
||||||
|
|
||||||
choices = [(e, l) for e, l in Order.STATUS_CHOICE if e != 'n']
|
choices = [(e, l) for e, l in Order.STATUS_CHOICE if e != 'n']
|
||||||
choices.insert(0, ('valid_if_pending', _('payment pending but already confirmed')))
|
choices.insert(0, ('valid_if_pending', _('payment pending but already confirmed')))
|
||||||
choices.insert(0, ('na', _('payment pending (except unapproved or already confirmed)')))
|
choices.insert(0, ('na', _('payment pending (except unapproved or already confirmed)')))
|
||||||
|
|||||||
Reference in New Issue
Block a user