Fix #293 -- Add ticket downloading reminder (#567)

Closes https://github.com/pretix/pretix/issues/293
This commit is contained in:
Sanket Dasgupta
2017-08-07 19:45:27 +05:30
committed by Raphael Michel
parent 0990c9cc3d
commit cb2826f171
6 changed files with 90 additions and 0 deletions

View File

@@ -631,6 +631,13 @@ class MailSettingsForm(SettingsForm):
validators=[PlaceholderValidator(['{expire_date}', '{event}', '{code}', '{date}', '{url}',
'{invoice_name}', '{invoice_company}'])]
)
mail_text_download_reminder = I18nFormField(
label=_("Text"),
required=False,
widget=I18nTextarea,
help_text=_("Available placeholders: {event}, {url}"),
validators=[PlaceholderValidator(['{event}', '{url}'])]
)
smtp_use_custom = forms.BooleanField(
label=_("Use custom SMTP server"),
help_text=_("All mail related to your event will be sent over the smtp server specified by you."),

View File

@@ -42,6 +42,8 @@
{% blocktrans asvar title_order_custom_mail %}Order custom mail{% endblocktrans %}
{% include "pretixcontrol/event/mail_settings_fragment.html" with pid="custom_mail" title=title_order_custom_mail items="mail_text_order_custom_mail" %}
{% blocktrans asvar title_download_tickets_reminder %}Reminder to download tickets{% endblocktrans %}
{% include "pretixcontrol/event/mail_settings_fragment.html" with pid="ticket_reminder" title=title_download_tickets_reminder items="mail_text_download_reminder" %}
</div>
</fieldset>
<fieldset>