2021-03-02 15:58:33 -05:00
{% extends 'generic/object.html' %}
2019-12-06 16:13:52 -05:00
{% load buttons %}
2018-05-18 11:09:11 -04:00
{% load helpers %}
2020-03-15 23:45:18 -04:00
{% load plugins %}
2016-03-01 11:23:03 -05:00
2021-03-02 15:58:33 -05:00
{% block breadcrumbs %}
2021-07-20 12:14:01 -04:00
{{ block.super }}
2021-04-14 11:30:15 -07:00
< li class = "breadcrumb-item" > < a href = "{% url 'ipam:aggregate_list' %}?rir_id={{ object.rir.pk }}" > {{ object.rir }}< / a > < / li >
2021-03-02 15:58:33 -05:00
{% endblock %}
2021-03-13 02:19:42 -07:00
{% block extra_controls %}
2021-03-02 15:58:33 -05:00
{% include 'ipam/inc/toggle_available.html' %}
2018-06-14 16:15:14 -04:00
{% endblock %}
{% block content %}
2016-03-01 11:23:03 -05:00
< div class = "row" >
2021-04-30 15:55:37 -07:00
< div class = "col col-md-6" >
2021-03-13 02:19:42 -07:00
< div class = "card" >
< h5 class = "card-header" >
Aggregate
< / h5 >
< div class = "card-body" >
< table class = "table table-hover attr-table" >
< tr >
< td > Family< / td >
< td > IPv{{ object.family }}< / td >
< / tr >
< tr >
< td > RIR< / td >
< td >
< a href = "{% url 'ipam:aggregate_list' %}?rir={{ object.rir.slug }}" > {{ object.rir }}< / a >
< / td >
< / tr >
< tr >
< td > Utilization< / td >
< td >
{{ object.get_utilization }}%
< / td >
< / tr >
< tr >
< td > Tenant< / td >
< td >
{% if object.tenant %}
{% if prefix.object.group %}
< a href = "{{ object.tenant.group.get_absolute_url }}" > {{ object.tenant.group }}< / a > /
{% endif %}
< a href = "{{ object.tenant.get_absolute_url }}" > {{ object.tenant }}< / a >
{% else %}
< span class = "text-muted" > None< / span >
2020-11-10 11:58:59 -05:00
{% endif %}
2021-03-13 02:19:42 -07:00
< / td >
< / tr >
< tr >
< td > Date Added< / td >
2021-07-06 12:10:29 -04:00
< td > {{ object.date_added|annotated_date|placeholder }}< / td >
2021-03-13 02:19:42 -07:00
< / tr >
< tr >
< td > Description< / td >
< td > {{ object.description|placeholder }}< / td >
< / tr >
< / table >
< / div >
2016-03-01 11:23:03 -05:00
< / div >
2020-11-19 12:24:52 -05:00
{% plugin_left_page object %}
2016-03-01 11:23:03 -05:00
< / div >
2021-04-30 15:55:37 -07:00
< div class = "col col-md-6" >
2020-11-19 13:53:37 -05:00
{% include 'inc/custom_fields_panel.html' %}
2020-11-19 12:24:52 -05:00
{% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='ipam:aggregate_list' %}
{% plugin_right_page object %}
2020-03-15 23:45:18 -04:00
< / div >
< / div >
2021-03-13 02:19:42 -07:00
< div class = "row mb-3" >
2021-04-30 15:55:37 -07:00
< div class = "col col-md-12" >
2020-11-19 12:24:52 -05:00
{% plugin_full_width_page object %}
2016-08-15 15:24:23 -04:00
< / div >
2016-03-01 11:23:03 -05:00
< / div >
2021-03-13 02:19:42 -07:00
< div class = "row mb-3" >
2021-04-30 15:55:37 -07:00
< div class = "col col-md-12" >
2021-07-12 15:36:51 -04:00
{% include 'utilities/obj_table.html' with table=prefix_table heading='Child Prefixes' bulk_edit_url='ipam:prefix_bulk_edit' bulk_delete_url='ipam:prefix_bulk_delete' %}
2016-03-01 11:23:03 -05:00
< / div >
< / div >
{% endblock %}