|
32 | 32 | {%if field.help_text%}<br/>{{field.help_text|safe}}{%endif%} |
33 | 33 | {# "No tags apply" checkbox below the selectize (only for new patches) #} |
34 | 34 | {%if form.no_tags_apply %} |
35 | | - <div class="form-check mt-2"> |
36 | | - <input type="checkbox" class="form-check-input" name="no_tags_apply" id="id_no_tags_apply" {% if form.no_tags_apply.value %}checked{% endif %}> |
37 | | - <label class="form-check-label" for="id_no_tags_apply">{{form.no_tags_apply.label}}</label> |
38 | | - {%if form.no_tags_apply.help_text%}<small class="form-text text-muted d-block">{{form.no_tags_apply.help_text}}</small>{%endif%} |
39 | | - </div> |
| 35 | + <div class="form-check mt-2"> |
| 36 | + <input type="checkbox" class="form-check-input" name="no_tags_apply" id="id_no_tags_apply" {% if form.no_tags_apply.value %}checked{% endif %}> |
| 37 | + <label class="form-check-label" for="id_no_tags_apply">{{form.no_tags_apply.label}}</label> |
| 38 | + {%if form.no_tags_apply.help_text%}<small class="form-text text-muted d-block">{{form.no_tags_apply.help_text}}</small>{%endif%} |
| 39 | + </div> |
40 | 40 | {%endif%} |
41 | 41 | </div> |
42 | 42 | </div> |
43 | 43 | {%elif field.name == 'no_tags_apply' %} |
44 | 44 | {# Skip - rendered as part of the tags group above #} |
45 | 45 | {%else%} |
46 | | - <div class="form-group"> |
47 | | - {{field|label_class:"control-label"}} |
48 | | - <div class="col-lg-12 controls"> |
49 | | - {%if field.errors %} |
50 | | - {%for e in field.errors%} |
51 | | - <div class="alert alert-danger">{{e}}</div> |
52 | | - {%endfor%} |
53 | | - {%endif%} |
54 | | - {%if field.name|slice:":7" == 'review_' %} |
55 | | - {%for choice in field %} |
56 | | - <div class="form-check form-check-inline"> |
57 | | - <input type="checkbox" class="form-check-input" name="{{field.name}}" value="{{choice.data.value}}" id="{{choice.id_for_label}}" {% if choice.data.selected %}checked{% endif %}> |
58 | | - <label class="form-check-label" for="{{choice.id_for_label}}">{{choice.choice_label}}</label> |
59 | | - </div> |
60 | | - {%endfor%} |
61 | | - {%elif not field.name in form.selectize_fields%}{{field|field_class:"form-control"}}{%else%}{{field}}{%endif%} |
62 | | - {%if field.help_text%}<br/>{{field.help_text|safe}}{%endif%}</div> |
63 | | - </div> |
| 46 | + <div class="form-group"> |
| 47 | + {{field|label_class:"control-label"}} |
| 48 | + <div class="col-lg-12 controls"> |
| 49 | + {%if field.errors %} |
| 50 | + {%for e in field.errors%} |
| 51 | + <div class="alert alert-danger">{{e}}</div> |
| 52 | + {%endfor%} |
| 53 | + {%endif%} |
| 54 | + {%if field.name|slice:":7" == 'review_' %} |
| 55 | + {%for choice in field %} |
| 56 | + <div class="form-check form-check-inline"> |
| 57 | + <input type="checkbox" class="form-check-input" name="{{field.name}}" value="{{choice.data.value}}" id="{{choice.id_for_label}}" {% if choice.data.selected %}checked{% endif %}> |
| 58 | + <label class="form-check-label" for="{{choice.id_for_label}}">{{choice.choice_label}}</label> |
| 59 | + </div> |
| 60 | + {%endfor%} |
| 61 | + {%elif not field.name in form.selectize_fields%}{{field|field_class:"form-control"}}{%else%}{{field}}{%endif%} |
| 62 | + {%if field.help_text%}<br/>{{field.help_text|safe}}{%endif%}</div> |
| 63 | + </div> |
64 | 64 | {%endif%} |
65 | 65 | {%else%} |
66 | 66 | {{field}} |
|
0 commit comments