Fix #173 -- Context variables in sendmail plugin (#279)

* Add context variables to sendmail plugin
#173

* fixed date format

* add context variables to sendmail plugin

* timezone adjustment
#173

* partial preview

* preview raw message

* preview not formatted

* Add context variables to sendmail plugin. Add email preview
#173

* Add context variables to sendmail plugin. Add email preview for multiple locales
#173

* add context variables to sendmail plugin, and email preview for multiple locales
#173

* add context variables to sendmail plugin, and email preview for multiple locales

* order url link update
#173
This commit is contained in:
Flavia Bastos
2016-11-09 10:18:02 -07:00
committed by Raphael Michel
parent c9d38d7f23
commit e059b14d1c
3 changed files with 69 additions and 7 deletions

View File

@@ -19,7 +19,8 @@ class MailForm(forms.Form):
)
self.fields['message'] = I18nFormField(
widget=I18nTextarea, required=True,
langcodes=event.settings.get('locales')
langcodes=event.settings.get('locales'),
help_text=_("Available placeholders: {due_date}, {event}, {order}, {order_date}, {order_url}")
)
choices = list(Order.STATUS_CHOICE)
if not event.settings.get('payment_term_expire_automatically', as_type=bool):