Add a page to edit a lists' banned addresses
1 parent 1ad7369 commit e0b2da4b9b76b5cb38bce9e9296f6916a53afc10
@Aurélien Bompard Aurélien Bompard authored on 14 Jan 2016
Showing 13 changed files
View
12
src/postorius/forms.py
"""
layout = [["Mass Removal", "emails"]]
 
 
class ListAddBanForm(forms.Form):
"""Ban an email address for a list."""
email = forms.CharField(
label=_('Add ban'),
help_text=_(
'You can ban a single email address or use a regular expression '
'to match similar email addresses.'),
error_messages={
'required': _('Please enter an email adddress.'),
'invalid': _('Please enter a valid email adddress.')})
 
 
class UserPreferences(FieldsetForm):
 
"""
Form handling the user's global, address and subscription based preferences
View
7
src/postorius/static/postorius/css/style.css
.margin-bottom {
margin-bottom: 1em;
}
 
form.bans-add-form {
margin-bottom: 2.5em;
}
table.bans-current {
width: auto;
}
View
src/postorius/templates/postorius/lists/bans.html 0 → 100644
View
src/postorius/templates/postorius/menu/list_nav.html
View
src/postorius/tests/fixtures/vcr_cassettes/list_bans.yaml 0 → 100644
View
src/postorius/tests/fixtures/vcr_cassettes/list_bans_add_ban.yaml 0 → 100644
View
src/postorius/tests/fixtures/vcr_cassettes/list_bans_add_duplicate.yaml 0 → 100644
View
src/postorius/tests/fixtures/vcr_cassettes/list_bans_del_ban.yaml 0 → 100644
View
src/postorius/tests/fixtures/vcr_cassettes/list_bans_del_unknown_ban.yaml 0 → 100644
View
src/postorius/tests/fixtures/vcr_cassettes/list_bans_delete_forms.yaml 0 → 100644
View
src/postorius/tests/mailman_api_tests/test_list_bans.py 0 → 100644
View
src/postorius/urls.py
View
src/postorius/views/list.py