diff --git a/src/postorius/templates/postorius/menu/user_nav.html b/src/postorius/templates/postorius/menu/user_nav.html index cdd4498..d516dcd 100644 --- a/src/postorius/templates/postorius/menu/user_nav.html +++ b/src/postorius/templates/postorius/menu/user_nav.html @@ -1,6 +1,13 @@ {% load i18n %} {% load nav_helpers %} + + + diff --git a/src/postorius/templates/postorius/user_address_activation.html b/src/postorius/templates/postorius/user_address_activation.html index abf0b7c..dfbcb3a 100644 --- a/src/postorius/templates/postorius/user_address_activation.html +++ b/src/postorius/templates/postorius/user_address_activation.html @@ -8,26 +8,28 @@ {% endblock %} {% block main %} - {% user_nav 'add_email' %} -
-

{% trans 'Add Email' %}

-
-
- {% csrf_token %} -
- {% if form.email.errors %} -
-
{{ form.email.errors }}
-
- {% endif %} - -
- {{ form.email|add_form_control }} -
-
- {{ form.user_email }} - -
+ + {% user_nav 'add_email' 'Add Email Address' %} + +
+ {% csrf_token %} +
+ {% if form.email.errors %} +
{{ form.email.errors }}
+ {% endif %} + +
+ {{ form.email|add_form_control }} +
-
+ {{ form.user_email }} +
+
+ +
+
+ + {% endblock main %} diff --git a/src/postorius/templates/postorius/user_address_activation_sent.html b/src/postorius/templates/postorius/user_address_activation_sent.html index 1afe73a..dd6390f 100644 --- a/src/postorius/templates/postorius/user_address_activation_sent.html +++ b/src/postorius/templates/postorius/user_address_activation_sent.html @@ -1,12 +1,14 @@ {% extends postorius_base_template %} {% load i18n %} +{% load nav_helpers %} {% block subtitle %} {% trans "Confirmation Sent" as page_title %}{{ page_title }} {% endblock %} {% block main %} -{% include 'postorius/menu/user_nav.html' %} + + {% user_nav 'add_email' 'Add Email Address' %}

{% trans 'Email address activation sent' %}

{% trans "A confirmation link has been sent to the email address you submitted. Please check your email account and click on the confirmation link to add this address for your account." %}

diff --git a/src/postorius/templates/postorius/user_address_preferences.html b/src/postorius/templates/postorius/user_address_preferences.html index 0fc796c..3ffacd8 100644 --- a/src/postorius/templates/postorius/user_address_preferences.html +++ b/src/postorius/templates/postorius/user_address_preferences.html @@ -9,66 +9,64 @@ {% endblock %} {% block main %} - {% user_nav 'settings' %} -
-

Subscription Settings

-
- - {% if nolists %} -
-

{% trans 'No Preferences Available' %}

-
-

{% trans 'You are not yet subscribed to any lists, so you have no Mailman preferences.' %}

- {% else %} -
- {% csrf_token %} - {{ formset.management_form }} -
- - {% for form,address in zipped_data %} - {% if forloop.first %} - - - - {% for field in form.visible_fields %} - - {% endfor %} - - - {% endif %} + + {% user_nav 'settings' 'Subscription Settings' %} + + + + {% if nolists %} +

{% trans 'No Preferences Available' %}

+

{% trans 'You are not yet subscribed to any lists, so you have no Mailman preferences.' %}

+ {% else %} +

{% trans 'Each email address can have specific Mailman preferences.' %}

+ + {% csrf_token %} + {{ formset.management_form }} +
+
{% trans 'Address' %} - -
+ {% for form,address in zipped_data %} + {% if forloop.first %} + - - {% for field in form %} - {% if field|fieldtype == 'RadioSelect' %} - - {% else %} - - {% endif %} + + {% for field in form.visible_fields %} + {% endfor %} - + + + {% endif %} + + + {% for field in form %} + {% if field|fieldtype == 'RadioSelect' %} + + {% else %} + + {% endif %} {% endfor %} -
{{ address }} - {% for choice in field %} - - {% endfor %} - {{ field|add_form_control }}{% trans 'Address' %} + +
{{ address }} + {% for choice in field %} + + {% endfor %} + {{ field|add_form_control }}
-
-
- -
-
- {% endif %} -
-
+ + {% endfor %} + +
+
+ +
+ + {% endif %} + {% endblock main %} {% block additionaljs %} -{% endblock %} diff --git a/src/postorius/templates/postorius/user_profile.html b/src/postorius/templates/postorius/user_profile.html index 25849d9..c6e99b3 100644 --- a/src/postorius/templates/postorius/user_profile.html +++ b/src/postorius/templates/postorius/user_profile.html @@ -7,21 +7,20 @@ {% endblock %} {% block main %} - {% user_nav 'profile' %} -
-

{% trans 'User Profile' %} - {{ user }}

-
- - - - - - - - - - - + + {% user_nav 'profile' 'User Profile' %} + +
{% trans 'Mailman display name' %}{{ mm_user.display_name }}
{% trans 'Username' %}{{ user.username }}
+ + + + + + + + + + @@ -33,8 +32,7 @@ {% endfor %} - -
{% trans 'Mailman display name' %}{{ mm_user.display_name }}
{% trans 'Username' %}{{ user.username }}
{% trans 'Main email' %} {{ user.email}}
-
-
+ + + {% endblock main %} diff --git a/src/postorius/templates/postorius/user_subscription_preferences.html b/src/postorius/templates/postorius/user_subscription_preferences.html index 9dec700..6ba48ec 100644 --- a/src/postorius/templates/postorius/user_subscription_preferences.html +++ b/src/postorius/templates/postorius/user_subscription_preferences.html @@ -8,66 +8,65 @@ {% endblock %} {% block main %} - {% user_nav 'settings' %} -
-

Subscription Settings

-
- - {% if nolists %} -
-

{% trans 'No Preferences Available' %}

-
-

{% trans 'You are not yet subscribed to any lists, so you have no Mailman preferences.' %}

- {% else %} -
- {% csrf_token %} - {{ formset.management_form }} -
- - {% for form,subscription in zipped_data %} - {% if forloop.first %} - - - - {% for field in form.visible_fields %} - - {% endfor %} - - - {% endif %} + + {% user_nav 'settings' 'Subscription Settings' %} + + + {% if nolists %} +
+

{% trans 'No Preferences Available' %}

+
+

{% trans 'You are not yet subscribed to any lists, so you have no Mailman preferences.' %}

+ {% else %} +

{% trans 'Each list subscription can have specific Mailman preferences.' %}

+ + {% csrf_token %} + {{ formset.management_form }} +
+
{% trans 'Subscription' %} - -
+ {% for form, subscription in zipped_data %} + {% if forloop.first %} + - - {% for field in form %} - {% if field|fieldtype == 'RadioSelect' %} - - {% else %} - - {% endif %} + + {% for field in form.visible_fields %} + {% endfor %} - + + + {% endif %} + + + {% for field in form %} + {% if field|fieldtype == 'RadioSelect' %} + + {% else %} + + {% endif %} {% endfor %} -
{{ subscription.list_id }} - {% for choice in field %} - - {% endfor %} - {{ field|add_form_control }}{% trans 'Subscription' %} + +
{{ subscription.list_id }} + {% for choice in field %} + + {% endfor %} + {{ field|add_form_control }}
-
-
- -
-
- {% endif %} -
-
+ + {% endfor %} + + +
+ +
+ + {% endif %} + {% endblock main %} {% block additionaljs %}