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

{% block breadcrumbs %}
  {{ block.super }}
  {% if object.scope %}
    {# TODO: This should link to a filtered list of VLANGroups #}
    <li class="breadcrumb-item">{{ object.scope|linkify }}</li>
  {% endif %}
{% endblock %}

{% block extra_controls %}
  {% if perms.ipam.add_vlan %}
    <a href="{% url 'ipam:vlan_add' %}?group={{ object.pk }}" class="btn btn-primary">
      <span class="mdi mdi-plus-thick" aria-hidden="true"></span> {% trans "Add VLAN" %}
    </a>
  {% endif %}
{% endblock extra_controls %}
