You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: admin_material/templates/admin/includes/fieldset.html
+4-4
Original file line number
Diff line number
Diff line change
@@ -7,12 +7,12 @@
7
7
{% for line in fieldset %}
8
8
<divclass="row">
9
9
<divclass="{% if line.fields.0 in 'last_login, date_joined' %}col-md-6{% else %}col-md-12{% endif %}">
10
-
<divclass="mb-4 {% if line.fields|length_is:'1' and line.errors %} errors{% endif %}{% if not line.has_visible_field %} hidden{% endif %}{% for field in line %}{% if field.field.name %} field-{{ field.field.name }}{% endif %}{% endfor %}">
11
-
{% if line.fields|length_is:'1' %}{{ line.errors }}{% endif %}
10
+
<divclass="mb-4 {% if line.fields|length == 1 and line.errors %} errors{% endif %}{% if not line.has_visible_field %} hidden{% endif %}{% for field in line %}{% if field.field.name %} field-{{ field.field.name }}{% endif %}{% endfor %}">
11
+
{% if line.fields|length == 1 %}{{ line.errors }}{% endif %}
12
12
{% for field in line %}
13
-
{# <div{%ifnotline.fields|length_is:'1' %} class="fieldBox{% if field.field.name %} field-{{ field.field.name }}{% endif %}{% if not field.is_readonly and field.errors %} errors{% endif %}{% if field.field.is_hidden %} hidden{% endif %}"{%eliffield.is_checkbox%}class="checkbox-row"{%endif%}>#}
13
+
{# <div{%ifnotline.fields|length == 1%}class="fieldBox{% if field.field.name %} field-{{ field.field.name }}{% endif %}{% if not field.is_readonly and field.errors %} errors{% endif %}{% if field.field.is_hidden %} hidden{% endif %}"{%eliffield.is_checkbox%}class="checkbox-row"{%endif%}>#}
14
14
15
-
{% if not line.fields|length_is:'1' and not field.is_readonly %}
15
+
{% if not line.fields|length == 1 and not field.is_readonly %}
0 commit comments