Fix device type buttons

This commit is contained in:
jeremystretch 2021-07-20 14:36:10 -04:00
parent 30f4eb8da0
commit 3f4e3f5f84

View File

@ -10,7 +10,7 @@
<li class="breadcrumb-item"><a href="{% url 'dcim:devicetype_list' %}?manufacturer_id={{ object.manufacturer.pk }}">{{ object.manufacturer }}</a></li>
{% endblock %}
{% block controls %}
{% block extra_controls %}
{% if perms.dcim.change_devicetype %}
<div class="dropdown m-1">
<button type="button" class="btn btn-primary btn-sm dropdown-toggle"data-bs-toggle="dropdown" aria-expanded="false">
@ -44,15 +44,6 @@
</ul>
</div>
{% endif %}
{% if perms.dcim.add_devicetype %}
{% clone_button object %}
{% endif %}
{% if perms.dcim.change_devicetype %}
{% edit_button object %}
{% endif %}
{% if perms.dcim.delete_devicetype %}
{% delete_button object %}
{% endif %}
{% endblock %}
{% block content %}