new file: netbox_dns_bridge/filtersets.py

new file:   netbox_dns_bridge/forms.py
new file:   netbox_dns_bridge/tables.py
modified:   netbox_dns_bridge/templates/netbox_dns_bridge/catz_overview.html
modified:   netbox_dns_bridge/views.py
Change catz table to ObjectListView
This commit is contained in:
sven committed 2026-08-12 00:28:57 +02:00
1 parent 9f71ff7332
commit ddef4965d6
5 files changed
+104 -89

No files matched your search

@@ -1,68 +1,22 @@
{% extends 'base/layout.html' %}
{% extends 'generic/object_list.html' %}
{% load i18n %}
{% block title %}Catalog Zone Info{% endblock %}
{% block title %}{% trans "Catalog Zone Info" %}{% endblock %}
{% block content %}
<div class="row">
<div class="row mb-3">
<div class="col-md-12">
<div class="card mb-3">
<h5 class="card-header">Catalog Zone SOA Serial Number</h5>
<div class="card">
<h5 class="card-header">{% trans "Catalog Zone SOA Serial Number" %}</h5>
<div class="card-body">
<table class="table table-striped">
<thead>
<tr>
<th>Value</th>
</tr>
</thead>
<tbody>
{% if soa_serial is not None %}
<tr>
<td>{{ soa_serial }}</td>
</tr>
{% else %}
<tr><td class="text-muted">Not yet initialized.</td></tr>
{% endif %}
</tbody>
</table>
{% if soa_serial is not None %}
<span>{{ soa_serial }}</span>
{% else %}
<span class="text-muted">{% trans "Not yet initialized." %}</span>
{% endif %}
</div>
</div>
{% for view_name, rows in zones_grouped.items %}
<div class="card mb-3">
<h5 class="card-header">Zone Identifiers | {{ view_name }}</h5>
<div class="card-body">
<table class="table table-striped">
<thead>
<tr>
<th>Zone</th>
<th>Active</th>
<th>Catalog Zone Identifier</th>
</tr>
</thead>
<tbody>
{% for z in rows %}
<tr>
<td>{{ z.name }}</td>
<td>{{ z.active|yesno:"Yes,No" }}</td>
<td>{{ z.catz_identifier|default:"—" }}</td>
</tr>
{% empty %}
<tr><td colspan="3" class="text-muted">No zones in this view.</td></tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% empty %}
<div class="card mb-3">
<h5 class="card-header">Zone Identifiers</h5>
<div class="card-body">
<p class="text-muted">No zones found.</p>
</div>
</div>
{% endfor %}
</div>
</div>
{{ block.super }}
{% endblock %}