dnmgmt/templates/domains/overview.html

101 lines
3.5 KiB
HTML
Raw Permalink Normal View History

2017-03-14 20:18:57 +01:00
{% extends "base.html" %}
2017-03-21 02:36:07 +01:00
{% load handletags %}
2017-03-14 20:18:57 +01:00
{% block content %}
<div class="row">
<div class="col-sm-12">
<div class="panel panel-default">
2017-03-21 02:36:07 +01:00
<div class="panel-heading">DNS Overview</div>
2017-03-14 20:18:57 +01:00
<div class="panel-body">
{% if not mnts %}
<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>
{% endif %}
2017-03-21 02:36:07 +01:00
<h4>Your Domains (<a href="{% url "domains:domain-create" %}">New domain</a>)</h4>
2017-03-15 02:22:08 +01:00
<table class="table">
<tr>
<th>Domain</th>
<th>Nameserver</th>
<th>MNTs</th>
<th></th>
</tr>
2017-03-14 20:18:57 +01:00
{% for domain in domains %}
2017-03-15 02:22:08 +01:00
<tr>
<td><a href="{% url "domains:domain-show" domain.name %}">{{ domain.name }}</a></td>
2017-03-21 02:36:07 +01:00
<td>
<ul>
{% for nameserver in domain.nameservers.all %}
<li>{{ nameserver|linkObject }}</li>
{% endfor %}
</ul>
</td>
<td>{{ domain.mnt_by.all|linkObjects }}</td>
2017-05-01 06:41:29 +02:00
<td>
2017-05-02 03:42:20 +02:00
<a href="{% url "domains:domain-check" domain.name %}"><span title="Check DNS" class="glyphicon glyphicon-check"></span></a>
<a href="{% url "domains:domain-edit" domain.name %}"><span title="Edit" class="glyphicon glyphicon-pencil"></span></a>
<a href="{% url "domains:domain-delete" domain.name %}"><span title="Delete" class="glyphicon glyphicon-trash"></span></a>
2017-05-01 06:41:29 +02:00
</td>
</tr>
{% endfor %}
</table>
<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>
2017-05-02 03:42:20 +02:00
<td><a href="{% url "domains:nameserver-edit" nameserver.getPK %}"><span title="Edit" class="glyphicon glyphicon-pencil"></span></a> <a href="{% url "domains:nameserver-delete" nameserver.getPK %}"><span title="Delete" class="glyphicon glyphicon-trash"></span></a></td>
2017-03-15 02:22:08 +01:00
</tr>
2017-03-14 20:18:57 +01:00
{% endfor %}
2017-03-15 02:22:08 +01:00
</table>
2017-03-21 02:36:07 +01:00
<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>
2017-04-04 02:53:25 +02:00
<td>{{ reversezone.parentNet|linkObject }}</td>
2017-03-21 02:36:07 +01:00
<td>
<ul>
2017-04-04 02:53:25 +02:00
{% for nameserver in reversezone.nameservers.all %}
2017-03-21 02:36:07 +01:00
<li>{{ nameserver|linkObject }}</li>
{% endfor %}
</ul>
</td>
2017-05-01 06:41:29 +02:00
<td>
2017-05-02 03:42:20 +02:00
<a href="{% url "domains:reversezone-check" reversezone.pk %}"><span title="Check DNS" class="glyphicon glyphicon-check"></span></a>
<a href="{% url "domains:reversezone-edit" reversezone.pk %}"><span title="Edit" class="glyphicon glyphicon-pencil"></span></a>
<a href="{% url "domains:reversezone-delete" reversezone.pk %}"><span title="Delete" class="glyphicon glyphicon-trash"></span></a></td>
2017-03-21 02:36:07 +01:00
</tr>
{% endfor %}
</table>
2017-03-14 20:18:57 +01:00
</div>
</div>
</div>
</div>
{% endblock %}