Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bryan BRANCOTTE
django-basetheme-bootstrap
Commits
cf3918d8
Commit
cf3918d8
authored
Aug 30, 2019
by
Bryan BRANCOTTE
Browse files
fixing margin problem with help_text of checkbox
parent
df0a07ff
Changes
3
Hide whitespace changes
Inline
Side-by-side
basetheme_bootstrap/static/css/basetheme_bootstrap4_pasteur.css
View file @
cf3918d8
...
...
@@ -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
;
...
...
setup.py
View file @
cf3918d8
...
...
@@ -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'
,
...
...
tests/urls.py
View file @
cf3918d8
...
...
@@ -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
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment