improved views and templates

This commit is contained in:
dreng
2023-05-09 19:32:50 +02:00
parent 25380c0618
commit a0698ed888
5 changed files with 31 additions and 11 deletions
@@ -1,7 +1,6 @@
{% extends 'generic/object.html' %}
{% load helpers %}
{% load plugins %}
{% load render_table from django_tables2 %}
{% block title %}Topology Views Coordinates{% endblock title %}
@@ -16,11 +15,11 @@
<table class="table table-hover attr-table">
<tr>
<th scope="row">Group</th>
<td>{{ object.group }}</td>
<td>{{ object.group|linkify }}</td>
</tr>
<tr>
<th scope="row">Device</th>
<td>{{ object.device }}</td>
<td>{{ object.device|linkify }}</td>
</tr>
<tr>
<th scope="row">X-Coordinate</th>
@@ -32,4 +32,14 @@
{% plugin_right_page object %}
</div>
</div>
<div class="row">
<div class="col col-md-12">
<div class="card">
<h5 class="card-header">Coordinates</h5>
<div class="card-body table-responsive">
{% render_table coordinates_table %}
</div>
</div>
</div>
</div>
{% endblock content %}