From a20c85c823a6cb6de74387059d606e249f6bdc9f Mon Sep 17 00:00:00 2001 From: Jan Max Meyer Date: Fri, 6 Sep 2024 15:53:32 +0200 Subject: [PATCH 1/4] fix: `renderEditForm()` should display errors --- deploy/html/editform/editform_bone_bone.html | 2 +- deploy/html/editform/editform_row.html | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/deploy/html/editform/editform_bone_bone.html b/deploy/html/editform/editform_bone_bone.html index ed83671..2493d06 100644 --- a/deploy/html/editform/editform_bone_bone.html +++ b/deploy/html/editform/editform_bone_bone.html @@ -1,5 +1,5 @@ {{ editWidget }} + + {% if boneErrors %} + {{ boneErrors[0].errorMessage if boneErrors and (boneErrors[0].severity.value == 3 or boneParams.required) }} + {% endif %} + {% else %} {{ editWidget }} From cc3f0df264dec07a925ef3955e5f6d628fb54cf7 Mon Sep 17 00:00:00 2001 From: Sven Eberth Date: Fri, 13 Sep 2024 21:39:04 +0200 Subject: [PATCH 2/4] Update deploy/html/editform/editform_row.html Co-authored-by: Jan Max Meyer --- deploy/html/editform/editform_row.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deploy/html/editform/editform_row.html b/deploy/html/editform/editform_row.html index dda1878..662b21b 100644 --- a/deploy/html/editform/editform_row.html +++ b/deploy/html/editform/editform_row.html @@ -13,7 +13,11 @@ {{ editWidget }} {% if boneErrors %} - {{ boneErrors[0].errorMessage if boneErrors and (boneErrors[0].severity.value == 3 or boneParams.required) }} + {% for error in boneErrors -%} + {% if error.severity.value == 3 or boneParams.required %} + {{ error.errorMessage }} + {% endif -%} + {%- endfor %} {% endif %} From cb41d99feb3c080cebc76e4f339c02d5653fadb6 Mon Sep 17 00:00:00 2001 From: Sven Eberth Date: Fri, 13 Sep 2024 21:41:45 +0200 Subject: [PATCH 3/4] Update editform_row.html --- deploy/html/editform/editform_row.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/html/editform/editform_row.html b/deploy/html/editform/editform_row.html index 662b21b..826e430 100644 --- a/deploy/html/editform/editform_row.html +++ b/deploy/html/editform/editform_row.html @@ -14,9 +14,9 @@ {% if boneErrors %} {% for error in boneErrors -%} - {% if error.severity.value == 3 or boneParams.required %} + {%- if error.severity.value == 3 or boneParams.required -%} {{ error.errorMessage }} - {% endif -%} + {%- endif -%} {%- endfor %} {% endif %} From df580e85a1304fcdc6a564226523778d69e62403 Mon Sep 17 00:00:00 2001 From: Jan Max Meyer Date: Fri, 27 Sep 2024 14:37:22 +0200 Subject: [PATCH 4/4] Update deploy/html/editform/editform_row.html --- deploy/html/editform/editform_row.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/html/editform/editform_row.html b/deploy/html/editform/editform_row.html index 826e430..84eea00 100644 --- a/deploy/html/editform/editform_row.html +++ b/deploy/html/editform/editform_row.html @@ -15,7 +15,7 @@ {% if boneErrors %} {% for error in boneErrors -%} {%- if error.severity.value == 3 or boneParams.required -%} - {{ error.errorMessage }} + {{ error.errorMessage }} {%- endif -%} {%- endfor %} {% endif %}