2016-03-01 11:23:03 -05:00
|
|
|
{% extends '_base.html' %}
|
2016-05-26 15:35:48 -04:00
|
|
|
{% load humanize %}
|
2016-03-01 11:23:03 -05:00
|
|
|
{% load helpers %}
|
|
|
|
|
|
|
|
{% block title %}Aggregates{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="pull-right">
|
|
|
|
{% if perms.ipam.add_aggregate %}
|
|
|
|
<a href="{% url 'ipam:aggregate_add' %}" class="btn btn-primary">
|
2016-08-01 13:29:45 -04:00
|
|
|
<span class="fa fa-plus" aria-hidden="true"></span>
|
2016-03-01 11:23:03 -05:00
|
|
|
Add an aggregate
|
|
|
|
</a>
|
2016-08-15 17:57:17 -04:00
|
|
|
<a href="{% url 'ipam:aggregate_import' %}" class="btn btn-info">
|
|
|
|
<span class="fa fa-download" aria-hidden="true"></span>
|
|
|
|
Import aggregates
|
|
|
|
</a>
|
2016-03-01 11:23:03 -05:00
|
|
|
{% endif %}
|
2016-06-16 12:08:50 -04:00
|
|
|
{% include 'inc/export_button.html' with obj_type='aggregates' %}
|
2016-03-01 11:23:03 -05:00
|
|
|
</div>
|
|
|
|
<h1>Aggregates</h1>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-9">
|
2016-05-16 16:15:37 -04:00
|
|
|
{% include 'utilities/obj_table.html' with bulk_edit_url='ipam:aggregate_bulk_edit' bulk_delete_url='ipam:aggregate_bulk_delete' %}
|
2016-05-26 15:35:48 -04:00
|
|
|
<p class="text-right">IPv4 total: <strong>{{ ipv4_total|intcomma }} /32s</strong></p>
|
|
|
|
<p class="text-right">IPv6 total: <strong>{{ ipv6_total|intcomma }} /64s</strong></p>
|
2016-03-01 11:23:03 -05:00
|
|
|
</div>
|
|
|
|
<div class="col-md-3">
|
2016-07-29 12:51:23 -04:00
|
|
|
{% include 'inc/search_panel.html' %}
|
2016-03-01 11:23:03 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|