2015-03-26 21:13:42 +00:00
|
|
|
{% extends "base.html" %}
|
2011-04-14 19:29:58 +00:00
|
|
|
|
2015-03-22 20:20:12 +00:00
|
|
|
{% block pageheader %}Zone listing for {{ zone_name }} on {{ dns_server.hostname }}{% endblock pageheader %}
|
2012-10-13 21:00:22 +00:00
|
|
|
|
2011-04-14 19:29:58 +00:00
|
|
|
{% block body %}
|
2011-11-25 22:43:26 +00:00
|
|
|
{% if not errors %}
|
2013-12-01 23:05:01 +00:00
|
|
|
<form action="{% url "delete_record" %}" method="post">{% csrf_token %}
|
2015-04-02 01:28:56 +00:00
|
|
|
<table class="table table-condensed table-hover sortable">
|
2015-03-25 17:48:13 +00:00
|
|
|
<a href="{% url "add_record" dns_server=dns_server zone_name=zone_name %}" class="btn btn-default">Add Record</a></button>
|
2015-03-25 00:19:11 +00:00
|
|
|
|
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>
|
|
|
|
|
2015-03-22 20:20:12 +00:00
|
|
|
<input type="hidden" name="dns_server" value="{{ dns_server.hostname }}">
|
2011-11-26 18:03:00 +00:00
|
|
|
<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>
|
2015-04-02 01:28:56 +00:00
|
|
|
<td>
|
|
|
|
<div class="checkbox">
|
|
|
|
<label>
|
|
|
|
<input type="checkbox" id="rr_{{current_record.rr_name}}" name="rr_list" value="{{ current_record.rr_name }}.{{ zone_name }}"/>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</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">
|
2015-03-22 20:20:12 +00:00
|
|
|
<button class="btn dropdown-toggle" data-toggle="dropdown">Record Actions <span class="caret"></span></button>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li><a href="#">Edit Record (Coming Soon)</a></li>
|
|
|
|
{% if current_record.rr_type == "A" %}
|
|
|
|
<li><a href="{% url "add_cname" dns_server=dns_server.hostname zone_name=zone_name record_name=current_record.rr_name %}">Add CNAME Pointer</a></li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
2012-10-26 21:09:05 +00:00
|
|
|
</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
|
|
|
|
2011-04-15 00:43:04 +00:00
|
|
|
</table>
|
2013-03-22 01:18:03 +00:00
|
|
|
|
2015-03-25 00:19:11 +00:00
|
|
|
<button class="btn btn-danger" type="submit">Delete Selected</button>
|
2011-04-23 02:29:45 +00:00
|
|
|
</form>
|
2011-11-25 22:43:26 +00:00
|
|
|
{% endif %}
|
2011-04-14 19:29:58 +00:00
|
|
|
{% endblock body %}
|