2011-04-14 19:29:58 +00:00
|
|
|
{% extends "base.htm" %}
|
|
|
|
|
2012-10-13 21:00:22 +00:00
|
|
|
{% block pageheader %}
|
2012-11-25 23:01:13 +00:00
|
|
|
Zone listing for {{ zone_name }} on {{ dns_server }}
|
2012-10-13 21:00:22 +00:00
|
|
|
{% endblock pageheader %}
|
|
|
|
|
2011-04-14 19:29:58 +00:00
|
|
|
{% block body %}
|
|
|
|
|
2011-11-25 22:43:26 +00:00
|
|
|
{% if not errors %}
|
2012-12-16 01:25:06 +00:00
|
|
|
<form action="{% url delete_record %}" method="post">{% csrf_token %}
|
2012-10-27 22:41:48 +00:00
|
|
|
<table class="table table-hover">
|
2011-04-15 00:43:04 +00:00
|
|
|
<tr>
|
2012-10-26 21:09:05 +00:00
|
|
|
<th>Select</th>
|
2011-04-15 00:43:04 +00:00
|
|
|
<th>Name</th>
|
|
|
|
<th>TTL</th>
|
|
|
|
<th>Class</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Data</th>
|
2012-10-26 21:09:05 +00:00
|
|
|
<th></th>
|
2011-04-15 00:43:04 +00:00
|
|
|
</tr>
|
|
|
|
|
2011-11-26 18:03:00 +00:00
|
|
|
<input type="hidden" name="dns_server" value="{{ dns_server }}">
|
|
|
|
<input type="hidden" name="zone_name" value="{{ zone_name }}">
|
2011-11-25 22:43:26 +00:00
|
|
|
{% for current_record in zone_array %}
|
2011-04-15 00:43:04 +00:00
|
|
|
<tr>
|
2012-11-24 03:22:59 +00:00
|
|
|
<td><input type="checkbox" name="rr_list" value="{{ current_record.rr_name }}.{{ zone_name }}"></td>
|
2011-04-15 00:43:04 +00:00
|
|
|
<td>{{ current_record.rr_name }}</td>
|
|
|
|
<td>{{ current_record.rr_ttl }}</td>
|
|
|
|
<td>{{ current_record.rr_class }}</td>
|
|
|
|
<td>{{ current_record.rr_type }}</td>
|
|
|
|
<td>{{ current_record.rr_data }}</td>
|
2012-10-26 21:09:05 +00:00
|
|
|
<td>
|
|
|
|
<div class="btn-toolbar" style="margin: 0;">
|
|
|
|
<div class="btn-group">
|
|
|
|
<button class="btn dropdown-toggle" data-toggle="dropdown">Record Actions <span class="caret"></span></button>
|
|
|
|
<ul class="dropdown-menu">
|
2012-12-26 00:57:00 +00:00
|
|
|
<li><a href="#">Edit Record (Coming Soon)</a></li>
|
2012-10-26 21:09:05 +00:00
|
|
|
{% if current_record.rr_type == "A" %}
|
2012-12-16 01:25:06 +00:00
|
|
|
<li><a href="{% url add_cname dns_server=dns_server zone_name=zone_name record_name=current_record.rr_name %}">Add CNAME Pointer</a></li>
|
2012-10-26 21:09:05 +00:00
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</td>
|
2011-04-15 00:43:04 +00:00
|
|
|
</tr>
|
2011-04-14 19:29:58 +00:00
|
|
|
{% endfor %}
|
2012-10-27 22:41:48 +00:00
|
|
|
|
2012-11-25 14:26:19 +00:00
|
|
|
<tr>
|
2012-12-16 01:25:06 +00:00
|
|
|
<td colspan="7"><a href="{% url add_record dns_server=dns_server zone_name=zone_name %}">Add Record</a></td>
|
2012-11-25 14:26:19 +00:00
|
|
|
</tr>
|
2011-04-15 00:43:04 +00:00
|
|
|
</table>
|
2011-04-23 02:29:45 +00:00
|
|
|
<input type="submit" value="Delete Selected"/>
|
|
|
|
</form>
|
2011-04-14 19:29:58 +00:00
|
|
|
|
2011-11-25 22:43:26 +00:00
|
|
|
{% endif %}
|
2011-04-14 19:29:58 +00:00
|
|
|
{% endblock body %}
|