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" >
2017-03-27 02:05:57 +02:00
< 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 >
2017-03-21 02:36:07 +01:00
< h4 > Your Nameservers (< a href = "{% url " domains:nameserver-create " % } " > New nameserver< / a > )< / h4 >
2017-03-15 02:22:08 +01:00
< table class = "table" >
< tr >
< th > Nameserver< / th >
< th > Glue IPv4< / th >
< th > Glue IPv6< / th >
< th > MNTs< / th >
< th > < / th >
< / tr >
2017-03-14 20:18:57 +01:00
{% for nameserver in nameservers %}
2017-03-15 02:22:08 +01:00
< tr >
2017-03-22 19:11:19 +01:00
< td > < a href = "{% url " domains:nameserver-show " nameserver . getPK % } " > {{ nameserver.name }}< / a > < / td >
2017-03-21 02:36:07 +01:00
< td > {{ nameserver.glueIPv4|default:"-" }}< / td >
< td > {{ nameserver.glueIPv6|default:"-" }}< / td >
< td > {{ nameserver.mnt_by.all|linkObjects }}< / td >
2017-03-22 19:11:19 +01:00
< td > < a href = "{% url " domains:nameserver-edit " nameserver . getPK % } " > Edit< / a > < a href = "{% url " domains:nameserver-delete " nameserver . getPK % } " > Delete< / 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 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-03-15 02:22:08 +01:00
< td > < a href = "{% url " domains:domain-edit " domain . name % } " > Edit< / a > < a href = "{% url " domains:domain-delete " domain . name % } " > Delete< / a > < / td >
< / 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 >
< 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 >
2017-03-14 20:18:57 +01:00
< / div >
< / div >
< / div >
< / div >
{% endblock %}