diff --git a/src/postorius/forms.py b/src/postorius/forms.py index 39f940e..eec1361 100644 --- a/src/postorius/forms.py +++ b/src/postorius/forms.py @@ -256,7 +256,7 @@ 'in the process.')) default_member_action = forms.ChoiceField( widget=forms.RadioSelect(), - label=_('Default action to take when a member posts to the list:'), + label=_('Default action to take when a member posts to the list'), error_messages={ 'required': _("Please choose a default member action.")}, required=True, @@ -275,7 +275,7 @@ default_nonmember_action = forms.ChoiceField( widget=forms.RadioSelect(), label=_('Default action to take when a non-member posts to the' - 'list:'), + 'list'), error_messages={ 'required': _("Please choose a default non-member action.")}, required=True, diff --git a/src/postorius/templates/postorius/lists/archival_options.html b/src/postorius/templates/postorius/lists/archival_options.html index 17deb37..5cf76dd 100644 --- a/src/postorius/templates/postorius/lists/archival_options.html +++ b/src/postorius/templates/postorius/lists/archival_options.html @@ -8,23 +8,21 @@ {% load nav_helpers %} {% block main %} - {% if message %}

{{ message }}

{% endif %} + {% list_nav 'list_archival_options' 'Archivers' %} -
-

{% trans 'Archivers' %}

-
-
- {% csrf_token %} - {% for choice in form.archivers %} -
- -
- {% endfor %} - -
+ +
+ {% csrf_token %} + {% for choice in form.archivers %} +
+ +
+ {% endfor %} +
+
-
+ {% endblock %} diff --git a/src/postorius/templates/postorius/lists/confirm_delete.html b/src/postorius/templates/postorius/lists/confirm_delete.html index e74a3f4..c36c832 100644 --- a/src/postorius/templates/postorius/lists/confirm_delete.html +++ b/src/postorius/templates/postorius/lists/confirm_delete.html @@ -9,16 +9,22 @@ {% block main %} {% list_nav 'list_delete' 'Delete List' %} -
-

{% trans 'Delete List' %}

-
-

{% trans 'Are you sure you want to permanently delete this list?' %}

-

{% trans 'All settings and membership data will be lost!' %}

-
- {% csrf_token %} - - {% trans 'Cancel' %} -
+ +

{% trans 'Are you sure you want to permanently delete this list?' %}

+

{% trans 'All settings and membership data will be lost!' %}

+ +
+ {% csrf_token %} +
+ + + {% trans 'Cancel' %} +
-
+ + {% endblock main %} diff --git a/src/postorius/templates/postorius/lists/confirm_remove_role.html b/src/postorius/templates/postorius/lists/confirm_remove_role.html index 816fcb5..6681c2b 100644 --- a/src/postorius/templates/postorius/lists/confirm_remove_role.html +++ b/src/postorius/templates/postorius/lists/confirm_remove_role.html @@ -15,7 +15,7 @@
{% csrf_token %} - {% trans 'Cancel' %} + {% trans 'Cancel' %}
diff --git a/src/postorius/templates/postorius/lists/confirm_removeall_subscribers.html b/src/postorius/templates/postorius/lists/confirm_removeall_subscribers.html index cf44861..de11603 100644 --- a/src/postorius/templates/postorius/lists/confirm_removeall_subscribers.html +++ b/src/postorius/templates/postorius/lists/confirm_removeall_subscribers.html @@ -3,16 +3,19 @@ {% load nav_helpers %} {% block main %} -
-

{% trans 'Confirm Removal of All Members' %}

-
-

{% trans 'Are you sure you want to unsubscribe all members from' %} {{ list_id }}{% trans '?' %}

-
-
- {% csrf_token %} - - {% trans 'Cancel' %} -
-
-
+ + {% list_nav 'mass_removal' 'Confirm Removal of All Members' %} + +

+ {% blocktrans with listname=list.fqdn_listname %} + Are you sure you want to unsubscribe all members from {{ listname }}? + {% endblocktrans %} +

+ +
+ {% csrf_token %} + + {% trans 'Cancel' %} +
+ {% endblock main %} diff --git a/src/postorius/templates/postorius/lists/held_messages.html b/src/postorius/templates/postorius/lists/held_messages.html index fc91842..95e210d 100644 --- a/src/postorius/templates/postorius/lists/held_messages.html +++ b/src/postorius/templates/postorius/lists/held_messages.html @@ -7,11 +7,10 @@ {% endblock %} {% block main %} - {% list_nav 'list_held_messages' 'Held Messages' %} -
-

{% trans 'Held Messages' %}

-
- {% if held_messages|length > 0 %} + + {% list_nav 'list_held_messages' 'Held Messages' %} + + {% if held_messages|length > 0 %}
{% if form.choices.errors %} {% for error in form.choices.errors %} @@ -84,11 +83,9 @@
{% include 'postorius/_pagination.html' with page=held_messages %} - {% else %} + {% else %}

{% trans 'There are currently no held messages.' %}

- {% endif %} -
- + {% endif %} {% endblock %} {% block additionaljs %} diff --git a/src/postorius/templates/postorius/lists/mass_removal.html b/src/postorius/templates/postorius/lists/mass_removal.html index 68cd4e1..5e5b3c6 100644 --- a/src/postorius/templates/postorius/lists/mass_removal.html +++ b/src/postorius/templates/postorius/lists/mass_removal.html @@ -4,31 +4,32 @@ {% load bootstrap_tags %} {% block main %} + {% list_nav 'mass_removal' 'Mass Removal' %} -
-

{% trans 'Mass Removal' %}

-
-
- {% csrf_token %} - {% if form.non_field_errors %} -
- {{ form.non_field_errors }} -
- {% endif %} -
- {% if form.emails.errors %} -
- {{ form.emails.errors }} -
- {% endif %} - -
{{ form.emails|add_form_control }}
+ + + {% csrf_token %} + {% if form.non_field_errors %} +
+ {{ form.non_field_errors }} +
+ {% endif %} +
+ {% if form.emails.errors %} +
+ {{ form.emails.errors }}
-
- - {% trans 'Unsubscribe All' %} - + {% endif %} + +
{{ form.emails|add_form_control }}
-
+
+
+ + + {% trans 'Unsubscribe All' %} +
+
+ {% endblock main %} diff --git a/src/postorius/templates/postorius/lists/mass_subscribe.html b/src/postorius/templates/postorius/lists/mass_subscribe.html index 5f0258c..aff0d83 100644 --- a/src/postorius/templates/postorius/lists/mass_subscribe.html +++ b/src/postorius/templates/postorius/lists/mass_subscribe.html @@ -8,26 +8,28 @@ {% endblock %} {% block main %} + {% list_nav 'mass_subscribe' 'Mass Subscription' %} -
-

{% trans 'Mass Subscription' %}

-
-
- {% csrf_token %} - {% if form.non_field_errors %} -
- {{ form.non_field_errors }} -
- {% endif %} -
- {% if form.emails.errors %} -
{{ form.emails.errors }}
- {% endif %} - -
{{ form.emails|add_form_control }}
-
- -
+ +
+ {% csrf_token %} + {% if form.non_field_errors %} +
+ {{ form.non_field_errors }} +
+ {% endif %} +
+ {% if form.emails.errors %} +
{{ form.emails.errors }}
+ {% endif %} + +
{{ form.emails|add_form_control }}
-
+
+
+ +
+
+ + {% endblock main %} diff --git a/src/postorius/templates/postorius/lists/memberoptions.html b/src/postorius/templates/postorius/lists/memberoptions.html index 8360794..47ade42 100644 --- a/src/postorius/templates/postorius/lists/memberoptions.html +++ b/src/postorius/templates/postorius/lists/memberoptions.html @@ -8,53 +8,47 @@ {% endblock %} {% block main %} - {% list_nav 'list_members' 'Member Options' %} + + {% list_nav 'list_members' 'Member options' mm_member.email %} + {% if not user.is_superuser and not user.is_list_owner %}

{% trans 'No Preferences Available' %}

{% trans 'You are not the owner for this list' %}

{% else %} -
-

{% trans 'Preferences for Member' %} {{ mm_member.email }}

-
-
- {% csrf_token %} -
- - - - - - - - {% for field in settingsform %} - - - - - {% endfor %} -
{% trans 'Preference' %}{% trans 'Setting' %}
-

{{ field.label_tag }}

- - {{ field.help_text }} - -
- {% if field|fieldtype == 'RadioSelect' %} - {% for choice in field %} - - {% endfor %} - {% else %} - {{ field|add_form_control }} - {% endif %} -
+ + {% csrf_token %} + {% for field in settingsform %} +
+ {% if field.errors %} +
{{ field.errors }}
+ {% endif %} + +
+ {% if field|fieldtype == 'RadioSelect' %} + {% for choice in field %} + + {% endfor %} + + {% else %} + {{ field|add_form_control }} + {% endif %}
-
- -
- +

+ {{ field.help_text }} +

+
+ {% endfor %} +
+
+ +
-
+ + {% endif %} {% endblock main %} diff --git a/src/postorius/templates/postorius/lists/members.html b/src/postorius/templates/postorius/lists/members.html index ed0d4d3..a5a0ef3 100644 --- a/src/postorius/templates/postorius/lists/members.html +++ b/src/postorius/templates/postorius/lists/members.html @@ -8,80 +8,81 @@ {% endblock %} {% block main %} - {% list_nav 'list_members' 'List Members' %} -
-

{{ page_title }}

-
- {% if not member_form %} -
- -
- {% csrf_token %} - -
-
- {% else %} + + {% list_nav 'list_members' page_title %} + + {% if role != 'subscribers' %} +
+ {% csrf_token %} +
{% if member_form.email.errors %} -
- {{ member_form.email.errors }} -
+
{{ member_form.email.errors }}
{% endif %} - - {% csrf_token %} - {{ member_form.email.label_tag }} - {{ member_form.email|add_form_control }} - - - {% endif %} -
- {% if members|length > 0 %} -
- {% csrf_token %} - {% if form.choices.errors %} -
{{ form.choices.errors }}
- {% endif %} -
- - - - {% if not member_form %} - - {% endif %} - - - - - - {% for member in members %} - - {% if not member_form %} - - - - {% else %} - - - {% endif %} - - {% endfor %} - -
{% trans 'Address' %} - {% if not member_form %} - - {% endif %} -
{{ member.email }}{% trans 'Unsubscribe' %}{{ member }}{% trans 'Delete' %}
-
-
- {% if not member_form %} - {% include 'postorius/_pagination.html' with page=members %} - {% endif %} - {% else %} -

{{ empty_error }}

- {% endif %} + {{ member_form.email.label_tag }} + {{ member_form.email|add_form_control }} +
+ + + {% endif %} + + {% if role == 'subscribers' %} + -
+ {% endif %} + + {% if members|length > 0 %} +
+ {% csrf_token %} + {% if form.choices.errors %} +
{{ form.choices.errors }}
+ {% endif %} +
+ + + + {% if role == 'subscribers' %} + + {% endif %} + + + + + + {% for member in members %} + + {% if role == 'subscribers' %} + + + + {% else %} + + + {% endif %} + + {% endfor %} + +
{% trans 'Address' %} + {% if role == 'subscribers' %} + + {% endif %} +
{{ member.email }}{% trans 'Unsubscribe' %}{{ member }}{% trans 'Delete' %}
+
+
+ {% if role == 'subscribers' %} + {% include 'postorius/_pagination.html' with page=members %} + {% endif %} + {% else %} +

{{ empty_error }}

+ {% endif %} + {% endblock main %} {% block additionaljs %}