mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-18 21:16:27 -06:00
#6372: Clone/edit/delete buttons are not top-aligned
This commit is contained in:
parent
0c8195e4f1
commit
5b68a11f01
@ -18,11 +18,15 @@
|
|||||||
{% block title %}{{ object }}{% endblock %}
|
{% block title %}{{ object }}{% endblock %}
|
||||||
|
|
||||||
{% block controls %}
|
{% block controls %}
|
||||||
<div class="controls mb-2 mx-0">
|
{# Clone/Edit/Delete Buttons #}
|
||||||
<div class="d-flex flex-wrap justify-content-end">
|
<div class="controls pb-2 mx-0">
|
||||||
|
<div class="d-flex flex-wrap justify-content-end mb-2">
|
||||||
{% custom_links object %}
|
{% custom_links object %}
|
||||||
{% plugin_buttons object %}
|
{% plugin_buttons object %}
|
||||||
|
|
||||||
|
{# Extra buttons #}
|
||||||
{% block extra_controls %}{% endblock %}
|
{% block extra_controls %}{% endblock %}
|
||||||
|
|
||||||
{% if request.user|can_add:object %}
|
{% if request.user|can_add:object %}
|
||||||
{% clone_button object %}
|
{% clone_button object %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -32,6 +36,7 @@
|
|||||||
{% if request.user|can_delete:object %}
|
{% if request.user|can_delete:object %}
|
||||||
{% delete_button object %}
|
{% delete_button object %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock controls %}
|
{% endblock controls %}
|
||||||
|
Loading…
Reference in New Issue
Block a user