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

98 lines
3.6 KiB
HTML
Raw Normal View History

2016-03-01 11:23:03 -05:00
{% extends '_base.html' %}
{% load render_table from django_tables2 %}
{% block title %}Aggregate: {{ aggregate }}{% endblock %}
{% block content %}
<div class="row">
<div class="col-md-9">
2016-03-01 11:23:03 -05:00
<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-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="glyphicon glyphicon-search" aria-hidden="true"></span>
</button>
</span>
</div>
</form>
</div>
2016-03-01 11:23:03 -05:00
</div>
<div class="pull-right">
{% if perms.ipam.change_aggregate %}
<a href="{% url 'ipam:aggregate_edit' pk=aggregate.pk %}" class="btn btn-warning">
<span class="glyphicon glyphicon-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="glyphicon glyphicon-trash" aria-hidden="true"></span>
Delete this aggregate
</a>
{% endif %}
</div>
<h1>{{ aggregate }}</h1>
<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>
<table class="table table-hover panel-body">
<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>Date Added</td>
<td>
{% if aggregate.date_added %}
<span>{{ aggregate.date_added }}</span>
2016-03-01 11:23:03 -05:00
{% else %}
<span class="text-muted">N/A</span>
2016-03-01 11:23:03 -05:00
{% endif %}
</td>
</tr>
<tr>
<td>Description</td>
<td>
{% if aggregate.description %}
2016-03-01 11:23:03 -05:00
<span>{{ aggregate.description }}</span>
{% else %}
<span class="text-muted">N/A</span>
2016-03-01 11:23:03 -05:00
{% endif %}
</td>
</tr>
<tr>
<td>Created</td>
<td>{{ aggregate.created }}</td>
</tr>
<tr>
<td>Last Updated</td>
<td>{{ aggregate.last_updated }}</td>
</tr>
2016-03-01 11:23:03 -05:00
</table>
</div>
</div>
</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 %}