prefixes.html 783 B

12345678910111213
  1. {% extends 'generic/object_children.html' %}
  2. {% load i18n %}
  3. {% block extra_controls %}
  4. {% include 'ipam/inc/toggle_available.html' %}
  5. {% include 'ipam/inc/max_depth.html' %}
  6. {% include 'ipam/inc/max_length.html' %}
  7. {% if perms.ipam.add_prefix and first_available_prefix %}
  8. <a href="{% url 'ipam:prefix_add' %}?prefix={{ first_available_prefix }}{% if object.vrf %}&vrf={{ object.vrf.pk }}{% endif %}{% if object.scope %}&scope_type={{ object.scope_type.pk }}&scope={{ object.scope.pk }}{% endif %}{% if object.tenant %}&tenant_group={{ object.tenant.group.pk }}&tenant={{ object.tenant.pk }}{% endif %}" class="btn btn-primary">
  9. <i class="mdi mdi-plus-thick" aria-hidden="true"></i> {% trans "Add Prefix" %}
  10. </a>
  11. {% endif %}
  12. {% endblock extra_controls %}