mirror of
https://github.com/netbox-community/netbox.git
synced 2026-03-21 20:18:38 -06:00
19 lines
656 B
HTML
19 lines
656 B
HTML
{% extends 'generic/object.html' %}
|
|
{% load i18n %}
|
|
|
|
{% block breadcrumbs %}
|
|
{{ block.super }}
|
|
<li class="breadcrumb-item">
|
|
<a href="{% url 'dcim:device_interfaces' pk=object.device.pk %}">{{ object.device }}</a>
|
|
</li>
|
|
{% endblock %}
|
|
|
|
{% 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 %}
|