mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
41 lines
1.5 KiB
HTML
41 lines
1.5 KiB
HTML
{% extends '_base.html' %}
|
|
{% load humanize %}
|
|
{% 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">
|
|
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
|
|
Add an aggregate
|
|
</a>
|
|
{% endif %}
|
|
{% if export_templates %}
|
|
<div class="btn-group">
|
|
<button type="button" class="btn btn-success dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
<span class="glyphicon glyphicon-export" aria-hidden="true"></span>
|
|
Export aggregates <span class="caret"></span>
|
|
</button>
|
|
<ul class="dropdown-menu">
|
|
{% for et in export_templates %}
|
|
<li><a href="{% url 'ipam:aggregate_list' %}?{% if request.GET %}{{ request.GET.urlencode }}&{% endif %}export={{ et.name }}">{{ et.name }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
<h1>Aggregates</h1>
|
|
<div class="row">
|
|
<div class="col-md-9">
|
|
{% include 'utilities/obj_table.html' with bulk_edit_url='ipam:aggregate_bulk_edit' bulk_delete_url='ipam:aggregate_bulk_delete' %}
|
|
<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>
|
|
</div>
|
|
<div class="col-md-3">
|
|
{% include 'inc/filter_panel.html' %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|