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 controls %}
|
||||
<div class="controls mb-2 mx-0">
|
||||
<div class="d-flex flex-wrap justify-content-end">
|
||||
{% custom_links object %}
|
||||
{% plugin_buttons object %}
|
||||
{% block extra_controls %}{% endblock %}
|
||||
{% if request.user|can_add:object %}
|
||||
{% clone_button object %}
|
||||
{% endif %}
|
||||
{% if request.user|can_change:object %}
|
||||
{% edit_button object %}
|
||||
{% endif %}
|
||||
{% if request.user|can_delete:object %}
|
||||
{% delete_button object %}
|
||||
{% endif %}
|
||||
{# Clone/Edit/Delete Buttons #}
|
||||
<div class="controls pb-2 mx-0">
|
||||
<div class="d-flex flex-wrap justify-content-end mb-2">
|
||||
{% custom_links object %}
|
||||
{% plugin_buttons object %}
|
||||
|
||||
{# Extra buttons #}
|
||||
{% block extra_controls %}{% endblock %}
|
||||
|
||||
{% if request.user|can_add:object %}
|
||||
{% clone_button object %}
|
||||
{% endif %}
|
||||
{% if request.user|can_change:object %}
|
||||
{% edit_button object %}
|
||||
{% endif %}
|
||||
{% if request.user|can_delete:object %}
|
||||
{% delete_button object %}
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock controls %}
|
||||
|
||||
{% block tabs %}
|
||||
|
Reference in New Issue
Block a user