From 11796f593f62691500f4c3cf3d5f2a7d6bfd3962 Mon Sep 17 00:00:00 2001 From: lukas Date: Sun, 16 Apr 2023 19:45:28 +0200 Subject: [PATCH] fix: changelist top actions display --- src/unfold/templates/admin/change_list.html | 36 ++++++++++++--------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/src/unfold/templates/admin/change_list.html b/src/unfold/templates/admin/change_list.html index c98dadb5..0e0f06d1 100644 --- a/src/unfold/templates/admin/change_list.html +++ b/src/unfold/templates/admin/change_list.html @@ -82,24 +82,28 @@ {% endif %} {% block result_list %} - {% if action_form and actions_on_top and cl.show_admin_actions %} -
- {% block search %} - {% search_form cl %} - {% endblock %} - - {% admin_actions %} + {% if actions_on_top %} + {% if cl.search_fields or action_form or cl.has_filters %} +
+ {% block search %} + {% search_form cl %} + {% endblock %} + + {% if action_form %} + {% admin_actions %} + {% endif %} - {% block filters %} - {% if cl.has_filters %} -
+ filter_list + + {% endif %} + {% endblock %} +
+ {% endif %} {% endif %} {% unfold_result_list cl %}