Skip to content

Commit 31173b6

Browse files
committed
change object-tools position
1 parent fc635ec commit 31173b6

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

adminlteui/templates/admin/change_list.html

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,10 @@ <h4 class="box-title">
5959
<div class="module{% if cl.has_filters %} filtered{% endif %}" id="changelist">
6060
<div class="row" style="margin-bottom: 15px;">
6161
{% block search %}
62-
<div class="col-md-10 col-sm-12 col-xs-12" id="toolbar">
62+
<div class="col-sm-12 col-xs-12" id="toolbar">
6363
{% search_form cl %}
6464
</div>
6565
{% endblock %}
66-
67-
{% block object-tools %}
68-
<div {% if cl.has_filters or cl.search_fields %}class="col-md-2 col-sm-12 col-xs-12 text-right"{% else %}class="col-md-12 text-right"{% endif %}>
69-
{% block object-tools-items %}
70-
{% change_list_object_tools %}
71-
{% endblock %}
72-
</div>
73-
{% endblock %}
7466
</div>
7567

7668
<div class="row">
@@ -84,7 +76,18 @@ <h4 class="box-title">
8476
{% endif %}
8577

8678
{% block result_list %}
87-
{% if action_form and actions_on_top and cl.show_admin_actions %}{% admin_actions %}{% endif %}
79+
<div class="row">
80+
{% if action_form and actions_on_top and cl.show_admin_actions %}
81+
<div class="col-md-6">{% admin_actions %}</div>
82+
{% endif %}
83+
{% block object-tools %}
84+
<div {% if action_form and actions_on_top and cl.show_admin_actions %}class="col-md-6 text-right"{% else %}class="col-md-12 text-right"{%endif%}>
85+
{% block object-tools-items %}
86+
{% change_list_object_tools %}
87+
{% endblock %}
88+
</div>
89+
{% endblock %}
90+
</div>
8891
{% result_list cl %}
8992
{% if action_form and actions_on_bottom and cl.show_admin_actions %}{% admin_actions %}{% endif %}
9093
{% endblock %}

0 commit comments

Comments
 (0)