From cf3918d864a5bdc021be84b4cb740bcf37c07503 Mon Sep 17 00:00:00 2001
From: Bryan Brancotte <bryan.brancotte@pasteur.fr>
Date: Fri, 30 Aug 2019 10:06:30 +0200
Subject: [PATCH] fixing margin problem with help_text of checkbox

---
 .../css/basetheme_bootstrap4_pasteur.css      |  3 +++
 setup.py                                      |  2 +-
 tests/urls.py                                 | 25 +++++++++++++++----
 3 files changed, 24 insertions(+), 6 deletions(-)

diff --git a/basetheme_bootstrap/static/css/basetheme_bootstrap4_pasteur.css b/basetheme_bootstrap/static/css/basetheme_bootstrap4_pasteur.css
index a95850e..ef0246a 100644
--- a/basetheme_bootstrap/static/css/basetheme_bootstrap4_pasteur.css
+++ b/basetheme_bootstrap/static/css/basetheme_bootstrap4_pasteur.css
@@ -258,6 +258,9 @@ input[type="checkbox"]:checked + label span:before
 content: "\f046";
 color: #0275e3;
 }
+.form-check>.form-check-label+.form-text{
+    margin-left: -1.25rem;
+}
 
 .card {
     border-radius: 0px;
diff --git a/setup.py b/setup.py
index 82e7a02..bc718d9 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ readme = open('README.rst').read()
 
 setup(
     name='django-basetheme-bootstrap',
-    version='0.2.4',
+    version='0.2.5',
     description='Django Basetheme Bootstrap',
     long_description=readme,
     author='Bryan Brancotte',
diff --git a/tests/urls.py b/tests/urls.py
index ee03260..e0da59e 100644
--- a/tests/urls.py
+++ b/tests/urls.py
@@ -11,11 +11,26 @@ def blabla(request):
 
 
 class FormExample(forms.Form):
-    char_field = forms.CharField()
-    texte_field = forms.CharField(widget=forms.widgets.Textarea())
-    select_field = forms.ChoiceField(choices=((1,'a'),(2,'b'),),widget=forms.widgets.Select())
-    radio_field = forms.ChoiceField(choices=((1,'a'),(2,'b'),), widget=forms.widgets.RadioSelect() )
-    bool_field = forms.BooleanField(required=False)
+    char_field = forms.CharField(
+        help_text="bla bla",
+    )
+    texte_field = forms.CharField(
+        widget=forms.widgets.Textarea(),
+        help_text="bla bla",
+    )
+    select_field = forms.ChoiceField(
+        choices=((1, 'a'), (2, 'b'),),
+        widget=forms.widgets.Select(),
+    )
+    radio_field = forms.ChoiceField(
+        choices=((1, 'a'), (2, 'b'),),
+        widget=forms.widgets.RadioSelect(),
+        help_text="bla bla",
+    )
+    bool_field = forms.BooleanField(
+        required=False,
+        help_text="bla bla",
+    )
 
 
 context = dict(
-- 
GitLab