From 270194b1170045eac67b147ac3cb78ccec1418be Mon Sep 17 00:00:00 2001 From: Ciaran Sanders Date: Wed, 25 Jun 2025 13:18:02 -0700 Subject: [PATCH] feat: move form error message above inline tabs --- src/unfold/templates/admin/base.html | 4 ++++ src/unfold/templates/admin/change_form.html | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/unfold/templates/admin/base.html b/src/unfold/templates/admin/base.html index 5cac3306..2cea880b 100644 --- a/src/unfold/templates/admin/base.html +++ b/src/unfold/templates/admin/base.html @@ -40,6 +40,10 @@
+ + {% include "unfold/helpers/messages/errornote.html" with errors=errors %} + {% include "unfold/helpers/messages/error.html" with errors=adminform.form.non_field_errors %} + {% if cl %} {% tab_list "changelist" cl.opts %} {% elif opts %} diff --git a/src/unfold/templates/admin/change_form.html b/src/unfold/templates/admin/change_form.html index 1ffd246f..90122310 100644 --- a/src/unfold/templates/admin/change_form.html +++ b/src/unfold/templates/admin/change_form.html @@ -85,9 +85,6 @@ {% endif %} - {% include "unfold/helpers/messages/errornote.html" with errors=errors %} - {% include "unfold/helpers/messages/error.html" with errors=adminform.form.non_field_errors %} - {% block field_sets %} {% with has_conditional_display=adminform.model_admin.conditional_fields %} {% for fieldset in adminform %}