diff --git a/templates/generic_table_form.html b/templates/generic_table_form.html index 6db71f6e..630c839f 100644 --- a/templates/generic_table_form.html +++ b/templates/generic_table_form.html @@ -5,44 +5,44 @@ {% endblock %} {% block body %} -
+

{{ form.form_title }}

{% if form.form_caption is not None %} -
+ {{ form.form_caption }} -
+ {% endif %}
{% csrf_token %} - +
{% for field in form %} - - {% endfor %}
+
{{ field.label }}{% if field.field.required %}*{% endif %}
{{ field.help_text }}
+ {{ field }} {% for error in field.errors %} - {{ error }} + {{ error }} {% endfor %}
-
{% trans 'Fields with * are required.' %}
+ {% trans 'Fields with * are required.' %}
-
+ -
- +
+
diff --git a/user/forms.py b/user/forms.py index de2e31f9..8793b952 100644 --- a/user/forms.py +++ b/user/forms.py @@ -25,7 +25,7 @@ class UserNotificationForm(BaseForm): help_text=_("Select the situations when you want to receive a notification"), widget=forms.CheckboxSelectMultiple( attrs={ - "class": "no-bullets", + "class": "list-unstyled", } ), choices=[] @@ -35,6 +35,7 @@ class UserNotificationForm(BaseForm): super().__init__(*args, **kwargs) self.user = user self.form_title = _("Edit notifications") + self.form_caption = _("") self.action_url = reverse("user:notifications") self.cancel_redirect = reverse("user:index")