Skip to content
Snippets Groups Projects
Commit cf3918d8 authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

fixing margin problem with help_text of checkbox

parent df0a07ff
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -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',
......
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment