Skip to content

Commit c095a70

Browse files
committed
Indent the templates a bit
1 parent 555a8da commit c095a70

File tree

3 files changed

+30
-30
lines changed

3 files changed

+30
-30
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{% extends "form_utils/form.html" %}
22

33
{% block fields %}
4-
{% for fieldset in form.fieldsets %}
5-
<fieldset class="{{ fieldset.classes }}">
6-
{% if fieldset.legend %}
7-
<legend>{{ fieldset.legend }}</legend>
8-
{% endif %}
9-
<ul>
10-
{% with fieldset as fields %}
11-
{% include "form_utils/fields_as_lis.html" %}
12-
{% endwith %}
13-
</ul>
14-
</fieldset>
15-
{% endfor %}
16-
{% endblock %}
4+
{% for fieldset in form.fieldsets %}
5+
<fieldset class="{{ fieldset.classes }}">
6+
{% if fieldset.legend %}
7+
<legend>{{ fieldset.legend }}</legend>
8+
{% endif %}
9+
<ul>
10+
{% with fieldset as fields %}
11+
{% include "form_utils/fields_as_lis.html" %}
12+
{% endwith %}
13+
</ul>
14+
</fieldset>
15+
{% endfor %}
16+
{% endblock fields %}
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{% for field in fields %}
2-
{% if field.is_hidden %}
3-
{{ field }}
4-
{% else %}
5-
<li{{ field.row_attrs }}>
6-
{{ field.errors }}
7-
{{ field.label_tag }}
8-
{{ field }}
9-
</li>
10-
{% endif %}
2+
{% if field.is_hidden %}
3+
{{ field }}
4+
{% else %}
5+
<li{{ field.row_attrs }}>
6+
{{ field.errors }}
7+
{{ field.label_tag }}
8+
{{ field }}
9+
</li>
10+
{% endif %}
1111
{% endfor %}
+8-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{% block errors %}
2-
{% if form.non_field_errors %}{{ form.non_field_errors }}{% endif %}
2+
{% if form.non_field_errors %}{{ form.non_field_errors }}{% endif %}
33
{% endblock %}
44

55
{% block fields %}
6-
<fieldset class="fieldset_main">
7-
<ul>
8-
{% with form as fields %}
9-
{% include "form_utils/fields_as_lis.html" %}
10-
{% endwith %}
11-
</ul>
12-
</fieldset>
6+
<fieldset class="fieldset_main">
7+
<ul>
8+
{% with form as fields %}
9+
{% include "form_utils/fields_as_lis.html" %}
10+
{% endwith %}
11+
</ul>
12+
</fieldset>
1313
{% endblock %}

0 commit comments

Comments
 (0)