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..94f74e5 100644 --- a/src/postorius/templates/postorius/user/profile.html +++ b/src/postorius/templates/postorius/user/profile.html @@ -25,13 +25,45 @@ {% trans 'Main email' %} {{ user.email}} + {% if user.other_emails %} + + {% trans 'Other emails' %} + + + {% endif %} - {% trans 'Other emails' %} - + + +

+ {% 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 %} +
+ @@ -40,13 +72,4 @@ {% 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 %}