File tree 3 files changed +6
-3
lines changed
bootstrap_toolkit/templates/bootstrap_toolkit
test_project/test_bootstrap 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
{% if field.field.widget.bootstrap %}
2
- {% with bootstrap as field.field.widget.bootstrap %}
2
+ {% with bootstrap= field.field.widget.bootstrap %}
3
3
{% with prepend=prepend|default:bootstrap.prepend|default:"" append=append|default:bootstrap.append|default:"" %}
4
4
{% include "bootstrap_toolkit/field_prepend_append.html" %}
5
5
{% endwith %}
Original file line number Diff line number Diff line change 3
3
< div class ="pagination ">
4
4
{% spaceless %}
5
5
< ul >
6
- < li class ="prev{% if page.number == 1 %} disabled{% endif %} "> < a href ="?page=1 "> ← {% trans "First" %}</ a > </ li >
6
+ < li class ="prev{% if page.number == 1 %} disabled{% endif %} "> < a href ="?page=1 "> ← {% trans "first"|capfirst %}</ a > </ li >
7
7
{% for p in page.paginator.page_range %}
8
8
{% if p|add:5 > = page.number and p|add:-5 < = page.number %}
9
9
< li {% if p == page.number %} class ="active "{% endif %} > < a href ="?page={{ p }} "> {{ p }}</ a > </ li >
10
10
{% endif %}
11
11
{% endfor %}
12
- < li class ="next{% if page.number == page.paginator.num_pages %} disabled{% endif %} "> < a href ="?page={{ page.paginator.num_pages }} "> {% trans "Last" %} →</ a > </ li >
12
+ < li class ="next{% if page.number == page.paginator.num_pages %} disabled{% endif %} "> < a href ="?page={{ page.paginator.num_pages }} "> {% trans "last"|capfirst %} →</ a > </ li >
13
13
</ ul >
14
14
{% endspaceless %}
15
15
</ div >
Original file line number Diff line number Diff line change 3
3
from bootstrap_toolkit .widgets import BootstrapDateInput
4
4
5
5
class TestForm (forms .Form ):
6
+ date = forms .DateField (
7
+ widget = BootstrapDateInput (),
8
+ )
6
9
title = forms .CharField (
7
10
max_length = 100 ,
8
11
help_text = u'This is the standard text input' ,
You can’t perform that action at this time.
0 commit comments