Fix untranslated form fields

This commit is contained in:
Raphael Michel
2017-12-18 20:48:33 +01:00
parent a62fbd54d4
commit fc731c3f58

View File

@@ -27,6 +27,7 @@ class MailForm(forms.Form):
event = kwargs.pop('event')
super().__init__(*args, **kwargs)
self.fields['subject'] = I18nFormField(
label=_('Subject'),
widget=I18nTextInput, required=True,
locales=event.settings.get('locales'),
help_text=_("Available placeholders: {expire_date}, {event}, {code}, {date}, {url}, "
@@ -35,6 +36,7 @@ class MailForm(forms.Form):
'{invoice_name}', '{invoice_company}'])]
)
self.fields['message'] = I18nFormField(
label=_('Message'),
widget=I18nTextarea, required=True,
locales=event.settings.get('locales'),
help_text=_("Available placeholders: {expire_date}, {event}, {code}, {date}, {url}, "