diff --git a/src/postorius/forms.py b/src/postorius/forms.py index 2a1af6e..d3e5d5b 100644 --- a/src/postorius/forms.py +++ b/src/postorius/forms.py @@ -818,7 +818,8 @@ class AddressActivationForm(forms.Form): - email = forms.EmailField() + email = forms.EmailField(widget=forms.TextInput( + attrs={'placeholder': 'Enter alternate email'})) def clean_email(self): email = self.cleaned_data.get('email') diff --git a/src/postorius/templates/postorius/user/profile.html b/src/postorius/templates/postorius/user/profile.html index 45f9c7a..7e6124c 100644 --- a/src/postorius/templates/postorius/user/profile.html +++ b/src/postorius/templates/postorius/user/profile.html @@ -14,39 +14,65 @@ - - + + - + - + + {% if user.other_emails %} + + + + + {% endif %} - - + +
{% trans 'Mailman display name' %}{{ mm_user.display_name }}{% trans 'Mailman display name' %} +
+ {% csrf_token %} +
+ {{ name_form.display_name|add_form_control }} +
+ + +
+
{% trans 'Username' %}{% trans 'Username' %} {{ user.username }}
{% trans 'Main email' %}{% trans 'Main email' %} {{ user.email}}
{% trans 'Other emails' %} + {% for email in user.other_emails %} +

• {{ email }}

+ {% endfor %} +
{% trans 'Other emails' %}
    - {% for email in user.other_emails %} -
  • {{ email }}
  • - {% endfor %} -
+

+ {% blocktrans %} + You can add other addresses to your profile, + to use different addresses for your subscriptions. + {% endblocktrans %} +

+
+ {% csrf_token %} + {% if form.non_field_errors %} +
{{ form.non_field_errors }}
+ {% endif %} + +
+ {{ form.email|add_form_control }} +
+ + {% for error in form.email.errors %} +
{{ error }}
+ {% endfor %} + +
+
-
-
- {% render_form_horizontal name_form 2 5 'Change display name' %} - -
-

- {% blocktrans %} - You can add other addresses to your profile, - to use different addresses for your subscriptions. - {% endblocktrans %} -

-
- {% render_form_horizontal form 2 5 'Add email address' %} -
{% endblock main %}