{% extends "portadmin/base.html" %} {% load portadmin %} {% block base_header_title %} PortAdmin - {{ netbox.get_short_sysname }} {% endblock %} {% block content %} {% if interfaces %}
{% if aliastemplate %}
{{ aliastemplate }}
{% endif %}

Show available vlans Available vlans for {{ account.login }}@{{ netbox.get_short_sysname }}

{% if voice_vlan %} {% endif %} {% for interface in interfaces %} {% comment %}IFALIAS{% endcomment %} {% comment %} If interface is a trunk, display link to trunk_edit if allowed If interface is not a trunk, display dropdown to choose vlan, or if not allowed to edit display access vlan {% endcomment %} {% comment %} If voice is activated the interface is a trunk. This need to check specifically for this. {% endcomment %} {% if voice_vlan %} {% endif %} {% comment %} This row is the "action" row that contains the buttons for saving and undoing the changes in the above row. The div is only there to make sure the slide functions work. If slide functionality is removed, remove the div aswell. {% endcomment %} {% endfor %}
{{netbox.sysname}}
Port A O Port Description VlanTel
{{ interface.ifname }} {% if interface.iseditable %} {% else %} {{ interface.ifalias }} {% endif %} {% if interface.trunk and not interface.voice_activated %} Trunk {% else %} {% if interface.iseditable %} {% else %} {{ interface.vlan|default_if_none:'' }} {% endif %} {% endif %} {% if interface.voice_activated or not interface.trunk %} {% else %}   {% endif %}
{% endif %} {% endblock %}