diff --git a/account/forms.py b/account/forms.py index 3d9ae14..c946a87 100755 --- a/account/forms.py +++ b/account/forms.py @@ -147,9 +147,9 @@ class CLabPinForm(forms.Form): class PreferredEmailForm(forms.Form): - preferred_email = forms.CharField(max_length=255, required=False, + preferred_email = forms.EmailField(max_length=255, required=False, label = _('Preferred e-mail'), - help_text=_("Forward my mail to this address.")) + help_text=_("Forward my mail to this address. Leave empty to use the c-base IMAP and SMTP servers.")) class AdminForm(forms.Form): diff --git a/account/templates/member_base.html b/account/templates/member_base.html index ab4cf7a..f1707eb 100644 --- a/account/templates/member_base.html +++ b/account/templates/member_base.html @@ -36,6 +36,10 @@
  • {% trans "SIP-PIN" %}
  • + {% url 'preferred_email' as preferred_email_url %} +
  • + {% trans "Preferred e-mail" %} +
  • {% for group in request.user.groups.all %} {% if group.name == 'ldap_admins' %} {% url 'admin' as admin_url %}