{% extends 'generic/object.html' %}
{% load i18n %}

{% block extra_controls %}
  {% if perms.dcim.add_interface and not object.is_virtual %}
    <a href="{% url 'dcim:interface_add' %}?device={{ object.device.pk }}&parent={{ object.pk }}&return_url={{ object.get_absolute_url }}" class="btn btn-success">
      <span class="mdi mdi-plus-thick" aria-hidden="true"></span> {% trans "Add Child Interface" %}
    </a>
  {% endif %}
  {{ block.super }}
{% endblock %}
