Commit cf3918d8 authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

fixing margin problem with help_text of checkbox

parent df0a07ff
...@@ -258,6 +258,9 @@ input[type="checkbox"]:checked + label span:before ...@@ -258,6 +258,9 @@ input[type="checkbox"]:checked + label span:before
content: "\f046"; content: "\f046";
color: #0275e3; color: #0275e3;
} }
.form-check>.form-check-label+.form-text{
margin-left: -1.25rem;
}
.card { .card {
border-radius: 0px; border-radius: 0px;
......
...@@ -7,7 +7,7 @@ readme = open('README.rst').read() ...@@ -7,7 +7,7 @@ readme = open('README.rst').read()
setup( setup(
name='django-basetheme-bootstrap', name='django-basetheme-bootstrap',
version='0.2.4', version='0.2.5',
description='Django Basetheme Bootstrap', description='Django Basetheme Bootstrap',
long_description=readme, long_description=readme,
author='Bryan Brancotte', author='Bryan Brancotte',
......
...@@ -11,11 +11,26 @@ def blabla(request): ...@@ -11,11 +11,26 @@ def blabla(request):
class FormExample(forms.Form): class FormExample(forms.Form):
char_field = forms.CharField() char_field = forms.CharField(
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() ) texte_field = forms.CharField(
bool_field = forms.BooleanField(required=False) 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( context = dict(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment