2021-03-29 16:43:29 -04:00
{% extends 'ipam/prefix/base.html' %}
2021-08-13 15:56:14 -04:00
{% load helpers %}
{% load static %}
2021-03-29 16:43:29 -04:00
2021-08-31 11:15:41 -04:00
{% block extra_controls %}
2021-03-29 16:43:29 -04:00
{% include 'ipam/inc/toggle_available.html' %}
{% if perms.ipam.add_prefix and active_tab == 'prefixes' and first_available_prefix %}
2021-08-31 11:15:41 -04:00
< a href = "{% url 'ipam:prefix_add' %}?prefix={{ first_available_prefix }}&vrf={{ object.vrf.pk }}&site={{ object.site.pk }}&tenant_group={{ object.tenant.group.pk }}&tenant={{ object.tenant.pk }}" class = "btn btn-sm btn-success" >
2021-03-29 16:43:29 -04:00
< i class = "mdi mdi-plus-thick" aria-hidden = "true" > < / i > Add Child Prefix
< / a >
{% endif %}
{% if perms.ipam.add_ipaddress and active_tab == 'ip-addresses' and first_available_ip %}
2021-08-31 11:15:41 -04:00
< a href = "{% url 'ipam:ipaddress_add' %}?address={{ first_available_ip }}&vrf={{ object.vrf.pk }}&tenant_group={{ object.tenant.group.pk }}&tenant={{ object.tenant.pk }}" class = "btn btn-sm btn-success" >
2021-03-29 16:43:29 -04:00
< span class = "mdi mdi-plus-thick" aria-hidden = "true" > < / span >
2021-08-31 11:15:41 -04:00
Add Child IP Address
2021-03-29 16:43:29 -04:00
< / a >
{% endif %}
{{ block.super }}
{% endblock %}
{% block content %}
< div class = "row" >
2021-04-30 15:55:37 -07:00
< div class = "col col-md-12" >
2021-08-31 11:15:41 -04:00
{% include 'inc/table_controls.html' with table_modal="PrefixDetailTable_config" %}
2021-08-10 16:26:14 -04:00
{% include 'utilities/obj_table.html' with heading='Child Prefixes' bulk_edit_url='ipam:prefix_bulk_edit' bulk_delete_url='ipam:prefix_bulk_delete' parent=prefix %}
2021-03-29 16:43:29 -04:00
< / div >
< / div >
2021-08-31 11:15:41 -04:00
{% table_config_form table table_name="PrefixDetailTable" %}
2021-08-13 15:56:14 -04:00
{% endblock %}
{% block javascript %}
2021-08-31 11:15:41 -04:00
< script src = "{% static 'js/tableconfig.js' %}" > < / script >
2021-03-29 16:43:29 -04:00
{% endblock %}