We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a93d9c7 commit ffe1be4Copy full SHA for ffe1be4
src/unfold/templates/admin/change_form.html
@@ -52,8 +52,12 @@
52
<input type="hidden" name="{{ to_field_var }}" value="{{ to_field }}">
53
{% endif %}
54
55
- {% include "unfold/helpers/messages/errornote.html" with errors=errors %}
56
- {% include "unfold/helpers/messages/error.html" with errors=adminform.form.non_field_errors %}
+ {% if errors or adminform.form.non_field_errors %}
+ <div class="flex flex-col gap-4 *:mb-0">
57
+ {% include "unfold/helpers/messages/errornote.html" with errors=errors %}
58
+ {% include "unfold/helpers/messages/error.html" with errors=adminform.form.non_field_errors %}
59
+ </div>
60
+ {% endif %}
61
62
{% block field_sets %}
63
{% with has_conditional_display=adminform.model_admin.conditional_fields %}
0 commit comments