Skip to content

Commit b33a3f5

Browse files
committed
Fix formatting
1 parent 04aeb94 commit b33a3f5

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

pgcommitfest/commitfest/templates/base_form.html

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -32,35 +32,35 @@
3232
{%if field.help_text%}<br/>{{field.help_text|safe}}{%endif%}
3333
{# "No tags apply" checkbox below the selectize (only for new patches) #}
3434
{%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>
4040
{%endif%}
4141
</div>
4242
</div>
4343
{%elif field.name == 'no_tags_apply' %}
4444
{# Skip - rendered as part of the tags group above #}
4545
{%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>
6464
{%endif%}
6565
{%else%}
6666
{{field}}

0 commit comments

Comments
 (0)