Commit d219330 1 parent 629d82d commit d219330 Copy full SHA for d219330
File tree 5 files changed +10
-9
lines changed
5 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 54
54
</ div >
55
55
56
56
< div class ="form-group ">
57
- < label class ="control-label " for ="id_multiple_checkbox "> Multiple checkbox</ label >
57
+ < label class ="control-label " for ="id_multiple_checkbox_0 "> Multiple checkbox</ label >
58
58
< div class =" multiple-checkbox ">
59
59
< ul id ="id_multiple_checkbox ">
60
60
< li > < label for ="id_multiple_checkbox_0 "> < input id ="id_multiple_checkbox_0 " name ="multiple_checkbox " type ="checkbox " value ="0 " /> Zero</ label > </ li >
65
65
</ div >
66
66
67
67
< div class ="form-group ">
68
- < label class ="control-label " for ="id_file_fied "> File fied </ label >
68
+ < label class ="control-label " for ="id_file_field "> File field </ label >
69
69
70
70
< div class =" ">
71
- < input id ="id_file_fied " name ="file_fied " type ="file " />
71
+ < input id ="id_file_field " name ="file_field " type ="file " />
72
72
</ div >
73
73
</ div >
74
74
Original file line number Diff line number Diff line change 56
56
</ div >
57
57
58
58
< div class ="form-group ">
59
- < label class ="control-label col-sm-2 col-lg-2 " for ="id_multiple_checkbox "> Multiple checkbox</ label >
59
+ < label class ="control-label col-sm-2 col-lg-2 " for ="id_multiple_checkbox_0 "> Multiple checkbox</ label >
60
60
< div class =" col-sm-10 col-lg-10 multiple-checkbox ">
61
61
< ul id ="id_multiple_checkbox ">
62
62
< li > < label for ="id_multiple_checkbox_0 "> < input id ="id_multiple_checkbox_0 " name ="multiple_checkbox " type ="checkbox " value ="0 " /> Zero</ label > </ li >
67
67
</ div >
68
68
69
69
< div class ="form-group ">
70
- < label class ="control-label col-sm-2 col-lg-2 " for ="id_file_fied "> File fied </ label >
70
+ < label class ="control-label col-sm-2 col-lg-2 " for ="id_file_field "> File field </ label >
71
71
72
72
< div class =" col-sm-10 col-lg-10 ">
73
- < input id ="id_file_fied " name ="file_fied " type ="file " />
73
+ < input id ="id_file_field " name ="file_field " type ="file " />
74
74
</ div >
75
75
</ div >
76
76
Original file line number Diff line number Diff line change 46
46
</ div >
47
47
{% else %}
48
48
{% if field.auto_id %}
49
- < label class ="control-label {{ classes.label }} {% if field.field.required %}{{ form.required_css_class }}{% endif %} " for ="{{ field.auto_id }} "> {{ field.label }}</ label >
49
+ < label class ="control-label {{ classes.label }} {% if field.field.required %}{{ form.required_css_class }}{% endif %} "
50
+ for ="{{ field.id_for_label }} "> {{ field.label }}</ label >
50
51
{% endif %}
51
52
52
53
< div class ="{{ classes.value }} {% if field|is_multiple_checkbox %}multiple-checkbox{% endif %} ">
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class ExampleForm(forms.Form):
28
28
radio_choice = forms .ChoiceField (choices = CHOICES , widget = forms .RadioSelect )
29
29
multiple_choice = forms .MultipleChoiceField (choices = CHOICES )
30
30
multiple_checkbox = forms .MultipleChoiceField (choices = CHOICES , widget = forms .CheckboxSelectMultiple )
31
- file_fied = forms .FileField ()
31
+ file_field = forms .FileField ()
32
32
password_field = forms .CharField (widget = forms .PasswordInput )
33
33
textarea = forms .CharField (widget = forms .Textarea )
34
34
boolean_field = forms .BooleanField ()
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ class ExampleForm(forms.Form):
12
12
radio_choice = forms .ChoiceField (choices = CHOICES , widget = forms .RadioSelect )
13
13
multiple_choice = forms .MultipleChoiceField (choices = CHOICES )
14
14
multiple_checkbox = forms .MultipleChoiceField (choices = CHOICES , widget = forms .CheckboxSelectMultiple )
15
- file_fied = forms .FileField ()
15
+ file_field = forms .FileField ()
16
16
password_field = forms .CharField (widget = forms .PasswordInput )
17
17
textarea = forms .CharField (widget = forms .Textarea )
18
18
boolean_field = forms .BooleanField ()
You can’t perform that action at this time.
0 commit comments