92 lines
2.8 KiB
HTML
92 lines
2.8 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% load handletags %}
|
|
|
|
{% block content %}
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">DNS Overview</div>
|
|
<div class="panel-body">
|
|
|
|
<div class="alert alert-danger" role="alert">
|
|
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
|
|
<strong>Warning</strong>: You have no maintainer object. Create one <a class="alert-link" href="{% url "whoisdb:dashboard" %}">here</a> before creating domains.
|
|
</div>
|
|
|
|
|
|
<h4>Your Nameservers (<a href="{% url "domains:nameserver-create" %}">New nameserver</a>)</h4>
|
|
<table class="table">
|
|
<tr>
|
|
<th>Nameserver</th>
|
|
<th>Glue IPv4</th>
|
|
<th>Glue IPv6</th>
|
|
<th>MNTs</th>
|
|
<th></th>
|
|
</tr>
|
|
{% for nameserver in nameservers %}
|
|
<tr>
|
|
<td><a href="{% url "domains:nameserver-show" nameserver.getPK %}">{{ nameserver.name }}</a></td>
|
|
<td>{{ nameserver.glueIPv4|default:"-" }}</td>
|
|
<td>{{ nameserver.glueIPv6|default:"-" }}</td>
|
|
<td>{{ nameserver.mnt_by.all|linkObjects }}</td>
|
|
<td><a href="{% url "domains:nameserver-edit" nameserver.getPK %}">Edit</a> <a href="{% url "domains:nameserver-delete" nameserver.getPK %}">Delete</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
|
|
<h4>Your Domains (<a href="{% url "domains:domain-create" %}">New domain</a>)</h4>
|
|
<table class="table">
|
|
<tr>
|
|
<th>Domain</th>
|
|
<th>Nameserver</th>
|
|
<th>MNTs</th>
|
|
<th></th>
|
|
</tr>
|
|
{% for domain in domains %}
|
|
<tr>
|
|
<td><a href="{% url "domains:domain-show" domain.name %}">{{ domain.name }}</a></td>
|
|
<td>
|
|
<ul>
|
|
{% for nameserver in domain.nameservers.all %}
|
|
<li>{{ nameserver|linkObject }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</td>
|
|
<td>{{ domain.mnt_by.all|linkObjects }}</td>
|
|
<td><a href="{% url "domains:domain-edit" domain.name %}">Edit</a> <a href="{% url "domains:domain-delete" domain.name %}">Delete</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
|
|
<h4>Your Reverse Zones (<a href="{% url "domains:reversezone-create" %}">New reverse zone</a>)</h4>
|
|
<table class="table">
|
|
<tr>
|
|
<th>Zone</th>
|
|
<th>Network</th>
|
|
<th>Nameserver</th>
|
|
<th></th>
|
|
</tr>
|
|
{% for reversezone in reversezones %}
|
|
<tr>
|
|
<td><a href="{% url "domains:reversezone-show" reversezone.pk %}">{{ reversezone.prefix }}</a></td>
|
|
<td></td>
|
|
<td>
|
|
<ul>
|
|
{% for nameserver in domain.nameservers.all %}
|
|
<li>{{ nameserver|linkObject }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</td>
|
|
<td><a href="{% url "domains:reversezone-edit" reversezone.pk %}">Edit</a> <a href="{% url "domains:reversezone-delete" reversezone.pk %}">Delete</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|