{% load portadmin %}
{{ netbox.get_short_sysname }}
Port
Enabled
Linked
Port description
Vlan
{% if voice_vlan %}
Tel
{% endif %}
{% if not readonly %} {% endif %}
{% for interface in interfaces %}
{# Interface name #}
Port 
{{ interface.ifname }}
{# Status indicators #}
Enabled 
Linked 
{# Port Description - input field #}
{% if interface.iseditable %} {% else %}
{{ interface.ifalias|default:' ' }}
{% endif %}
{# Vlan / Trunk #}
{% if interface.trunk and not interface.voice_activated %} Trunk {% else %} {% if interface.iseditable %}
{% else %} {{ interface.vlan|default_if_none:'' }} {% endif %} {% endif %}
{# Optional checkbox for voice vlan #} {% if voice_vlan %}
{% if interface.voice_activated or not interface.trunk %} {# This span is needed because of the hide-for-medium-up class on the child #} Tel: {% else %}   {% endif %}
{% endif %} {# Button for saving #}
{% if interface.iseditable %} {% endif %}
{% endfor %}