File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
pgcommitfest/userprofile/templates Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 1212 {%for field in form%}
1313 {%if not field.is_hidden%}
1414 < div class ="form-group ">
15- {{field|label_class:"control-label col-lg-2"}}
15+ {%if field.field.widget.input_type != 'checkbox'%}
16+ {{field|label_class:"control-label col-lg-2"}}
17+ {%endif%}
1618 < div class ="col-lg-10 controls ">
1719 {%if field.errors %}
1820 {%for e in field.errors%}
1921 < div class ="alert alert-danger "> {{e}}</ div >
2022 {%endfor%}
2123 {%endif%}
22- {{field|field_class:"form-control"}}
24+ {%if field.field.widget.input_type == 'checkbox'%}
25+ < div class ="form-check ">
26+ {{field|field_class:"form-check-input"}}
27+ < label class ="form-check-label " for ="{{field.id_for_label}} "> {{field.label}}</ label >
28+ </ div >
29+ {%else%}
30+ {{field|field_class:"form-control"}}
31+ {%endif%}
2332 {%if field.help_text%}< br /> {{field.help_text|safe}}{%endif%}</ div >
2433 </ div >
2534 {%else%}
You can’t perform that action at this time.
0 commit comments