Add help texts to the document mailing form.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2017-07-14 22:19:28 -04:00
parent 16e0b0e0e7
commit 6743752789

View File

@@ -54,13 +54,20 @@ class DocumentMailForm(forms.Form):
except UserMailer.DoesNotExist:
pass
email = forms.EmailField(label=_('Email address'))
email = forms.EmailField(
help_text=_(
'Email address of the recipient. Can be multiple addresses '
'separated by comma or semicolon.'
), label=_('Email address')
)
subject = forms.CharField(label=_('Subject'), required=False)
body = forms.CharField(
label=_('Body'), widget=forms.widgets.Textarea(), required=False
)
user_mailer = forms.ModelChoiceField(
label=_('Mailing profile'), queryset=UserMailer.objects.none()
help_text=_(
'The email profile that will be used to send this email.'
), label=_('Mailing profile'), queryset=UserMailer.objects.none()
)