1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

98 lines
3.8 KiB
HTML
Raw Normal View History

2016-03-01 11:23:03 -05:00
{% extends '_base.html' %}
2018-05-18 11:09:11 -04:00
{% load helpers %}
2016-03-01 11:23:03 -05:00
2018-06-14 16:15:14 -04:00
{% block header %}
<div class="row">
<div class="col-sm-8 col-md-9">
<ol class="breadcrumb">
<li><a href="{% url 'ipam:aggregate_list' %}">Aggregates</a></li>
<li><a href="{% url 'ipam:aggregate_list' %}?rir={{ aggregate.rir.slug }}">{{ aggregate.rir }}</a></li>
<li>{{ aggregate }}</li>
</ol>
</div>
<div class="col-sm-4 col-md-3">
<form action="{% url 'ipam:aggregate_list' %}" method="get">
<div class="input-group">
<input type="text" name="q" class="form-control" placeholder="Search aggregates" />
<span class="input-group-btn">
<button type="submit" class="btn btn-primary">
<span class="fa fa-search" aria-hidden="true"></span>
</button>
</span>
</div>
</form>
</div>
2016-03-01 11:23:03 -05:00
</div>
2018-06-14 16:15:14 -04:00
<div class="pull-right">
{% if perms.ipam.change_aggregate %}
<a href="{% url 'ipam:aggregate_edit' pk=aggregate.pk %}" class="btn btn-warning">
<span class="fa fa-pencil" aria-hidden="true"></span>
Edit this aggregate
</a>
{% endif %}
{% if perms.ipam.delete_aggregate %}
<a href="{% url 'ipam:aggregate_delete' pk=aggregate.pk %}" class="btn btn-danger">
<span class="fa fa-trash" aria-hidden="true"></span>
Delete this aggregate
</a>
{% endif %}
</div>
2018-06-14 16:15:14 -04:00
<h1>{% block title %}{{ aggregate }}{% endblock %}</h1>
{% include 'inc/created_updated.html' with obj=aggregate %}
<ul class="nav nav-tabs">
<li role="presentation"{% if not active_tab %} class="active"{% endif %}>
<a href="{{ aggregate.get_absolute_url }}">Aggregate</a>
</li>
<li role="presentation"{% if active_tab == 'changelog' %} class="active"{% endif %}>
<a href="{% url 'ipam:aggregate_changelog' pk=aggregate.pk %}">Changelog</a>
</li>
</ul>
{% endblock %}
{% block content %}
2016-03-01 11:23:03 -05:00
<div class="row">
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading">
<strong>Aggregate</strong>
2016-03-01 11:23:03 -05:00
</div>
2016-12-14 17:09:33 -05:00
<table class="table table-hover panel-body attr-table">
2016-03-01 11:23:03 -05:00
<tr>
<td>Family</td>
<td>{{ aggregate.get_family_display }}</td>
</tr>
<tr>
<td>RIR</td>
<td>
<a href="{% url 'ipam:aggregate_list' %}?rir={{ aggregate.rir.slug }}">{{ aggregate.rir }}</a>
</td>
</tr>
<tr>
<td>Utilization</td>
<td>
{{ aggregate.get_utilization }}%
</td>
</tr>
2016-03-01 11:23:03 -05:00
<tr>
<td>Date Added</td>
<td>{{ aggregate.date_added|placeholder }}</td>
2016-03-01 11:23:03 -05:00
</tr>
<tr>
<td>Description</td>
<td>{{ aggregate.description|placeholder }}</td>
2016-03-01 11:23:03 -05:00
</tr>
</table>
</div>
</div>
2016-08-15 15:24:23 -04:00
<div class="col-md-6">
{% include 'inc/custom_fields_panel.html' with obj=aggregate %}
{% include 'extras/inc/tags_panel.html' with tags=aggregate.tags.all url='ipam:aggregate_list' %}
2016-08-15 15:24:23 -04:00
</div>
2016-03-01 11:23:03 -05:00
</div>
<div class="row">
<div class="col-md-12">
{% include 'utilities/obj_table.html' with table=prefix_table table_template='panel_table.html' 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 %}