{% extends 'generic/object_children.html' %}

{% block extra_controls %}
    {% if perms.dcim.add_device %}
        <a href="{% url 'dcim:device_add' %}?rack={{ object.pk }}&site={{ object.site.pk }}&return_url={% url 'dcim:rack_nonracked_devices' pk=object.pk %}"
           class="btn btn-primary">
            <i class="mdi mdi-plus-thick" aria-hidden="true"></i> Add non-racked device
        </a>
    {% endif %}
{% endblock extra_controls %}
