diff --git a/admin/freeposte/admin/forms.py b/admin/freeposte/admin/forms.py index e15b9d5c..8c8c4844 100644 --- a/admin/freeposte/admin/forms.py +++ b/admin/freeposte/admin/forms.py @@ -59,7 +59,7 @@ class UserForm(Form): class UserSettingsForm(Form): displayed_name = fields.StringField('Displayed name') spam_enabled = fields.BooleanField('Enable spam filter') - spam_threshold = fields.DecimalField('Spam filter sensitivity') + spam_threshold = fields_.IntegerSliderField('Spam filter threshold') submit = fields.SubmitField('Save settings') diff --git a/admin/freeposte/admin/templates/user/settings.html b/admin/freeposte/admin/templates/user/settings.html index ef31cba7..229510e5 100644 --- a/admin/freeposte/admin/templates/user/settings.html +++ b/admin/freeposte/admin/templates/user/settings.html @@ -1,4 +1,4 @@ -{% extends "form.html" %} +{% extends "base.html" %} {% block title %} User settings @@ -7,3 +7,15 @@ User settings {% block subtitle %} {{ user }} {% endblock %} + +{% block box_content %} +
+{% endblock %}