diff --git a/src/postorius/templates/postorius/lists/members.html b/src/postorius/templates/postorius/lists/members.html index 1efaf84..f4bef91 100644 --- a/src/postorius/templates/postorius/lists/members.html +++ b/src/postorius/templates/postorius/lists/members.html @@ -21,42 +21,40 @@ {{ member_form.email.label_tag }} {{ member_form.email|add_form_control }} - + {% endif %} {% if role == 'subscriber' %} -
-
-
-
- - - - -
-
-
-
+ {% if form.choices.errors %} +
{{ form.choices.errors }}
+ {% endif %} +
+
+
+ + + + +
+
+
+ {% endif %} + + {% if members|length > 0 %} + {% if role == 'subscriber' %} +
+ {% csrf_token %} + + -
- {% endif %} - - {% if members|length > 0 %} - {% if role == 'subscriber' %} - - {% csrf_token %} - - {% if form.choices.errors %} -
{{ form.choices.errors }}
- {% endif %} {% endif %} -
+
@@ -104,8 +102,5 @@ $('#all-members-checkbox').change(function() { $('.member-checkbox').prop('checked', this.checked); }); -$('#unsubscribe-selected-btn').click(function() { - $('#unsubscribe-form').submit(); -}); {% endblock %}