2020-09-24 11:25:52 -04:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
{% load buttons %}
|
|
|
|
{% load custom_links %}
|
|
|
|
{% load helpers %}
|
|
|
|
{% load plugins %}
|
|
|
|
|
|
|
|
{% block header %}
|
|
|
|
<div class="row noprint">
|
|
|
|
<div class="col-sm-8 col-md-9">
|
|
|
|
<ol class="breadcrumb">
|
|
|
|
<li><a href="{% url 'ipam:routetarget_list' %}">Route Targets</a></li>
|
2020-11-19 12:24:52 -05:00
|
|
|
<li>{{ object }}</li>
|
2020-09-24 11:25:52 -04:00
|
|
|
</ol>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-4 col-md-3">
|
|
|
|
<form action="{% url 'ipam:routetarget_list' %}" method="get">
|
|
|
|
<div class="input-group">
|
|
|
|
<input type="text" name="q" class="form-control" placeholder="Search roue targets" />
|
|
|
|
<span class="input-group-btn">
|
|
|
|
<button type="submit" class="btn btn-primary">
|
2020-11-06 14:33:20 -05:00
|
|
|
<span class="mdi mdi-magnify" aria-hidden="true"></span>
|
2020-09-24 11:25:52 -04:00
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="pull-right noprint">
|
2020-11-19 12:24:52 -05:00
|
|
|
{% plugin_buttons object %}
|
2020-09-24 11:25:52 -04:00
|
|
|
{% if perms.ipam.add_routetarget %}
|
2020-11-19 12:24:52 -05:00
|
|
|
{% clone_button object %}
|
2020-09-24 11:25:52 -04:00
|
|
|
{% endif %}
|
|
|
|
{% if perms.ipam.change_routetarget %}
|
2020-11-19 12:24:52 -05:00
|
|
|
{% edit_button object %}
|
2020-09-24 11:25:52 -04:00
|
|
|
{% endif %}
|
|
|
|
{% if perms.ipam.delete_routetarget %}
|
2020-11-19 12:24:52 -05:00
|
|
|
{% delete_button object %}
|
2020-09-24 11:25:52 -04:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
2020-11-19 12:24:52 -05:00
|
|
|
<h1>{% block title %}Route target {{ object }}{% endblock %}</h1>
|
2020-11-19 13:44:34 -05:00
|
|
|
{% include 'inc/created_updated.html' %}
|
2020-09-24 11:25:52 -04:00
|
|
|
<div class="pull-right noprint">
|
2020-11-19 12:24:52 -05:00
|
|
|
{% custom_links object %}
|
2020-09-24 11:25:52 -04:00
|
|
|
</div>
|
|
|
|
<ul class="nav nav-tabs">
|
|
|
|
<li role="presentation"{% if not active_tab %} class="active"{% endif %}>
|
2020-11-19 12:24:52 -05:00
|
|
|
<a href="{{ object.get_absolute_url }}">Route Target</a>
|
2020-09-24 11:25:52 -04:00
|
|
|
</li>
|
|
|
|
{% if perms.extras.view_objectchange %}
|
|
|
|
<li role="presentation"{% if active_tab == 'changelog' %} class="active"{% endif %}>
|
2020-11-19 12:24:52 -05:00
|
|
|
<a href="{% url 'ipam:routetarget_changelog' pk=object.pk %}">Change Log</a>
|
2020-09-24 11:25:52 -04:00
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<strong>Route Target</strong>
|
|
|
|
</div>
|
|
|
|
<table class="table table-hover panel-body attr-table">
|
|
|
|
<tr>
|
|
|
|
<td>Name</td>
|
2020-11-19 12:24:52 -05:00
|
|
|
<td>{{ object.name }}</td>
|
2020-09-24 11:25:52 -04:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Tenant</td>
|
|
|
|
<td>
|
2020-11-19 12:24:52 -05:00
|
|
|
{% if object.tenant %}
|
|
|
|
<a href="{{ object.tenant.get_absolute_url }}">{{ object.tenant }}</a>
|
2020-09-24 11:25:52 -04:00
|
|
|
{% else %}
|
|
|
|
<span class="text-muted">None</span>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Description</td>
|
|
|
|
<td>{{ vrf.description|placeholder }}</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
2020-11-19 12:24:52 -05:00
|
|
|
{% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='ipam:routetarget_list' %}
|
|
|
|
{% include 'inc/custom_fields_panel.html' with obj=object %}
|
|
|
|
{% plugin_left_page object %}
|
2020-09-24 11:25:52 -04:00
|
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
2020-09-24 12:09:28 -04:00
|
|
|
{% include 'panel_table.html' with table=importing_vrfs_table heading="Importing VRFs" %}
|
|
|
|
{% include 'panel_table.html' with table=exporting_vrfs_table heading="Exporting VRFs" %}
|
2020-11-19 12:24:52 -05:00
|
|
|
{% plugin_right_page object %}
|
2020-09-24 11:25:52 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
2020-11-19 12:24:52 -05:00
|
|
|
{% plugin_full_width_page object %}
|
2020-09-24 11:25:52 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|