2022-06-27 23:24:50 -05:00
|
|
|
{% extends 'generic/object.html' %}
|
|
|
|
{% load helpers %}
|
|
|
|
{% load plugins %}
|
|
|
|
{% load render_table from django_tables2 %}
|
2023-07-29 03:30:25 +07:00
|
|
|
{% load i18n %}
|
2022-06-27 23:24:50 -05:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="row mb-3">
|
|
|
|
<div class="col col-md-6">
|
2022-07-11 21:51:39 -04:00
|
|
|
<div class="card">
|
2023-07-29 03:30:25 +07:00
|
|
|
<h5 class="card-header">{% trans "L2VPN Attributes" %}</h5>
|
2024-01-17 16:25:42 -05:00
|
|
|
<table class="table table-hover attr-table">
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Name" %}</th>
|
|
|
|
<td>{{ object.name|placeholder }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Identifier" %}</th>
|
|
|
|
<td>{{ object.identifier|placeholder }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Type" %}</th>
|
|
|
|
<td>{{ object.get_type_display }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Description" %}</th>
|
|
|
|
<td>{{ object.description|placeholder }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{% trans "Tenant" %}</th>
|
|
|
|
<td>{{ object.tenant|linkify|placeholder }}</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2022-07-11 21:51:39 -04:00
|
|
|
</div>
|
2023-11-28 13:45:00 -05:00
|
|
|
{% include 'inc/panels/tags.html' with tags=object.tags.all url='vpn:l2vpn_list' %}
|
2022-07-11 21:51:39 -04:00
|
|
|
{% plugin_left_page object %}
|
2022-06-27 23:24:50 -05:00
|
|
|
</div>
|
|
|
|
<div class="col col-md-6">
|
2022-07-11 21:51:39 -04:00
|
|
|
{% include 'inc/panels/custom_fields.html' %}
|
2022-11-04 08:28:09 -04:00
|
|
|
{% include 'inc/panels/comments.html' %}
|
2022-07-11 21:51:39 -04:00
|
|
|
{% plugin_right_page object %}
|
2022-06-27 23:24:50 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row mb-3">
|
|
|
|
<div class="col col-md-6">
|
|
|
|
{% include 'inc/panel_table.html' with table=import_targets_table heading="Import Route Targets" %}
|
|
|
|
</div>
|
|
|
|
<div class="col col-md-6">
|
|
|
|
{% include 'inc/panel_table.html' with table=export_targets_table heading="Export Route Targets" %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row mb-3">
|
|
|
|
<div class="col col-md-12">
|
2022-07-11 21:51:39 -04:00
|
|
|
<div class="card">
|
2023-07-29 03:30:25 +07:00
|
|
|
<h5 class="card-header">{% trans "Terminations" %}</h5>
|
2024-01-17 16:25:42 -05:00
|
|
|
<div class="card-body htmx-container table-responsive p-0"
|
2023-11-28 13:45:00 -05:00
|
|
|
hx-get="{% url 'vpn:l2vpntermination_list' %}?l2vpn_id={{ object.pk }}"
|
2023-01-16 15:50:45 -05:00
|
|
|
hx-trigger="load"
|
|
|
|
></div>
|
2023-11-28 13:45:00 -05:00
|
|
|
{% if perms.vpn.add_l2vpntermination %}
|
2024-01-17 16:25:42 -05:00
|
|
|
<div class="card-footer text-end d-print-none">
|
|
|
|
<a href="{% url 'vpn:l2vpntermination_add' %}?l2vpn={{ object.pk }}&return_url={{ object.get_absolute_url }}" class="btn btn-primary{% if not object.can_add_termination %} disabled" aria-disabled="true{% endif %}">
|
2023-07-29 03:30:25 +07:00
|
|
|
<i class="mdi mdi-plus-thick" aria-hidden="true"></i> {% trans "Add a Termination" %}
|
2022-07-11 21:51:39 -04:00
|
|
|
</a>
|
2022-06-27 23:24:50 -05:00
|
|
|
</div>
|
2022-07-11 21:51:39 -04:00
|
|
|
{% endif %}
|
2022-06-27 23:24:50 -05:00
|
|
|
</div>
|
2022-07-11 21:51:39 -04:00
|
|
|
</div>
|
2022-06-27 23:24:50 -05:00
|
|
|
</div>
|
|
|
|
<div class="row mb-3">
|
2022-07-11 21:51:39 -04:00
|
|
|
<div class="col col-md-12">
|
|
|
|
{% plugin_full_width_page object %}
|
2022-06-27 23:24:50 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|