mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
#6372: Clone/edit/delete buttons are not top-aligned
This commit is contained in:
@ -18,22 +18,27 @@
|
|||||||
{% 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">
|
||||||
{% custom_links object %}
|
<div class="d-flex flex-wrap justify-content-end mb-2">
|
||||||
{% plugin_buttons object %}
|
{% custom_links object %}
|
||||||
{% block extra_controls %}{% endblock %}
|
{% plugin_buttons object %}
|
||||||
{% if request.user|can_add:object %}
|
|
||||||
{% clone_button object %}
|
{# Extra buttons #}
|
||||||
{% endif %}
|
{% block extra_controls %}{% endblock %}
|
||||||
{% if request.user|can_change:object %}
|
|
||||||
{% edit_button object %}
|
{% if request.user|can_add:object %}
|
||||||
{% endif %}
|
{% clone_button object %}
|
||||||
{% if request.user|can_delete:object %}
|
{% endif %}
|
||||||
{% delete_button object %}
|
{% if request.user|can_change:object %}
|
||||||
{% endif %}
|
{% edit_button object %}
|
||||||
|
{% endif %}
|
||||||
|
{% if request.user|can_delete:object %}
|
||||||
|
{% delete_button object %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
{% endblock controls %}
|
{% endblock controls %}
|
||||||
|
|
||||||
{% block tabs %}
|
{% block tabs %}
|
||||||
|
Reference in New Issue
Block a user