From dbf505d75e4ca2654608f4404332e55e67726a58 Mon Sep 17 00:00:00 2001 From: Chris Lawton <chris.lawton@torchbox.com> Date: Thu, 8 Feb 2018 10:15:12 +0000 Subject: [PATCH] add form group class to address items for spacing --- .../templates/addressfield/widgets/nested_with_label.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addressfield/templates/addressfield/widgets/nested_with_label.html b/addressfield/templates/addressfield/widgets/nested_with_label.html index 82afcdc8a..afb74baf2 100644 --- a/addressfield/templates/addressfield/widgets/nested_with_label.html +++ b/addressfield/templates/addressfield/widgets/nested_with_label.html @@ -1,8 +1,8 @@ <div {% include "django/forms/widgets/attrs.html" %}>{% spaceless %} {% for widget in widget.subwidgets %} {% if not widget.subwidgets %} - <div class="form__item"> - <label for="{{ widget.attrs.id }}">{{ widget.attrs.display }}</label> + <div class="form__group"> + <label class="form__question" for="{{ widget.attrs.id }}">{{ widget.attrs.display }}</label> {% endif %} {% include widget.template_name %} -- GitLab