From fbb58f96c929a480961bc615714e4cbb4bf2a32b Mon Sep 17 00:00:00 2001 From: Baoz Date: Sun, 18 Aug 2024 14:32:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=85=E7=BD=AE=E8=BF=87=E6=BB=A4=E5=99=A8'l?= =?UTF-8?q?ength=5Fis'=E5=AE=98=E6=96=B9=E6=96=87=E6=A1=A3=E8=AF=B4?= =?UTF-8?q?=E6=98=8E=E4=BB=8E4.2=E7=89=88=E6=9C=AC=E4=B9=8B=E5=90=8E?= =?UTF-8?q?=E9=80=90=E6=AD=A5=E5=BC=83=E7=94=A8=EF=BC=8C=E5=AE=9E=E6=B5=8B?= =?UTF-8?q?5.1=E4=BB=A5=E5=90=8E=E5=AE=8C=E5=85=A8=E5=BA=9F=E5=BC=83?= =?UTF-8?q?=EF=BC=8C=E4=BF=AE=E6=AD=A3=E8=B0=83=E7=94=A8length=20=3D=3D=20?= =?UTF-8?q?1=EF=BC=8C=E4=BB=A5=E5=85=BC=E5=AE=B9=205.1=E4=BB=A5=E5=90=8E?= =?UTF-8?q?=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- simpleui/templates/admin/includes/fieldset.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/simpleui/templates/admin/includes/fieldset.html b/simpleui/templates/admin/includes/fieldset.html index f2123c3..bbd005c 100644 --- a/simpleui/templates/admin/includes/fieldset.html +++ b/simpleui/templates/admin/includes/fieldset.html @@ -5,11 +5,11 @@
{{ fieldset.description|safe }}
{% endif %} {% for line in fieldset %} -
- {% if line.fields|length_is:'1' %}{{ line.errors }}{% endif %} +
+ {% if line.fields|length == 1 %}{{ line.errors }}{% endif %} {% for field in line %} - - {% if not line.fields|length_is:'1' and not field.is_readonly %}{{ field.errors }}{% endif %} + + {% if not line.fields|length == 1 and not field.is_readonly %}{{ field.errors }}{% endif %} {% if field.is_checkbox %} {{ field.field }}{{ field.label_tag }} {% else %} -- Gitee