summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Hostbase/hostbase/webtemplates/dns.html
blob: ab75dd9563f9848aaf8a056569fb3442930a7397 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{% extends "base.html" %}

{% block pagebanner %}
  <div class="header">
      <h2>dns info for {{ host.hostname }}</h2>
  </div>
  <br/>
{% endblock %}

{% block sidebar %}
{% include "navbar" %}
<ul class="sidebar">
   <li><a href="/hostbase/{{ host.id }}/" class="sidebar">host info</a></li>
   <li><a href="/hostbase/{{ host.id }}/edit/" class="sidebar">edit host info</a></li>
   <li><a href="edit/" class="sidebar">edit dns info</a></li>
   <li><a href="/hostbase/{{ host.id }}/logs/" class="sidebar">change logs</a></li>
</ul>
{% include "logout" %}
{% endblock %}

{% block content %}

   {% for ip in info %}
   <ul><li> <b>ip_addr:</b> {{ ip.0.ip_addr }}</li>
   {% for name in ip.1 %}
   <ul> <li><b>name:</b> {{ name.name }}</li> <ul>
   {% for cname in cnames %}
   {% ifequal cname.name_id name.id %}
   <li> <b>cname:</b> {{ cname.cname }}</li>
   {% endifequal %}
   {% endfor %}
   {% for mx in mxs %}
   {% ifequal mx.0 name.id %}
   {% for record in mx.1 %}
   <li> <b>mx:</b> {{ record.priority }} {{ record.mx }}</li>
   {% endfor %}
   {% endifequal %}
   {% endfor %}
   </ul></ul>
   {% endfor %}
   </ul>
   {% endfor %}
{% endblock %}