diff --git a/src/postorius/templates/postorius/lists/members.html b/src/postorius/templates/postorius/lists/members.html index 9a0380a..0460d27 100644 --- a/src/postorius/templates/postorius/lists/members.html +++ b/src/postorius/templates/postorius/lists/members.html @@ -41,35 +41,31 @@ {% trans 'CSV Export' %} - {% trans 'Unsubscribe all' %} + + {% trans 'Unsubscribe All' %} {% endif %} {% if members|length > 0 %} -
+ {% if role == 'subscriber' %} + {% csrf_token %} + {% if form.choices.errors %}
{{ form.choices.errors }}
{% endif %} + {% endif %}
- {% if role == 'subscriber' %} - - - {% else %} - - - {% endif %} + {% endif %} + {% trans 'Address' %} + @@ -83,7 +79,7 @@ {% else %} @@ -94,8 +90,8 @@
- + {% if role == 'subscriber' %} - {% trans 'Select All' %} - - - - {% trans 'Address' %}
- {% trans 'Member Options' %} + {% trans 'Member Options' %} {{ member }}
-
{% if role == 'subscriber' %} +
{% include 'postorius/lib/pagination.html' with page=members %} @@ -110,5 +106,8 @@ $('#all-members-checkbox').change(function() { $('.member-checkbox').prop('checked', this.checked); }); +$('#unsubscribe-selected-btn').click(function() { + $('#unsubscribe-form').submit(); +}); {% endblock %}