clean up delete template, change rr_array -> rr_list. list multiple records for deletion a bit cleaner
This commit is contained in:
parent
8858d831b1
commit
9c5143cbd7
|
@ -8,11 +8,9 @@ Delete record(s) in {{ zone_name }}
|
||||||
|
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<form action="/delete_record/result/" method="POST">{% csrf_token %}
|
<form action="/delete_record/result/" method="POST">{% csrf_token %}
|
||||||
<input type="hidden" name="dns_server" value="{{ dns_server }}">
|
<input type="hidden" name="dns_server" value="{{ dns_server }}">
|
||||||
<input type="hidden" name="zone_name" value="{{ zone_name }}">
|
<input type="hidden" name="zone_name" value="{{ zone_name }}">
|
||||||
<input type="hidden" name="rr_array" value="{{ rr_array }}">
|
<input type="hidden" name="rr_list" value="{{ rr_list }}">
|
||||||
<!-- <input type="hidden" name="delete_step" value="finalize"> -->
|
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="2">Do you really want to delete the following records?</th>
|
<th colspan="2">Do you really want to delete the following records?</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -22,23 +20,30 @@ Delete record(s) in {{ zone_name }}
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Zone</td>
|
<td>Zone</td>
|
||||||
<td> {{ zone_name }} </td>
|
<td>{{ zone_name }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Records</td>
|
<td>Records</td>
|
||||||
<td>{% for current_rr in rr_array %} {{ current_rr}} {% endfor %}</td>
|
<td>{% for current_rr in rr_list %}{{ current_rr }}<br> {% endfor %}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Key</td>
|
<td>Key</td>
|
||||||
<td> <select name="key_name">
|
<td>
|
||||||
<option selected="selected" value=""/>
|
<select name="key_name">
|
||||||
{% for current_key in tsig_keys %}
|
<option selected="selected" value=""/>
|
||||||
<option value="{{current_key}}">{{current_key}}</option>
|
{% for current_key in tsig_keys %}
|
||||||
{% endfor %}</td>
|
<option value="{{current_key.id}}">{{current_key}}</option>
|
||||||
</tr>
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="2">
|
||||||
|
<input type="submit" value="Yes, I really want to delete them."/>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<input type="submit" value="Yes, I really want to delete them."/>
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
{% endblock body %}
|
{% endblock body %}
|
||||||
|
|
|
@ -23,7 +23,7 @@ Zone listing for {{ zone_name }}
|
||||||
<input type="hidden" name="zone_name" value="{{ zone_name }}">
|
<input type="hidden" name="zone_name" value="{{ zone_name }}">
|
||||||
{% for current_record in zone_array %}
|
{% for current_record in zone_array %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><input type="checkbox" name="rr_array" value="{{ current_record.rr_name }}.{{ zone_name }}"></td>
|
<td><input type="checkbox" name="rr_list" value="{{ current_record.rr_name }}.{{ zone_name }}"></td>
|
||||||
<td>{{ current_record.rr_name }}</td>
|
<td>{{ current_record.rr_name }}</td>
|
||||||
<td>{{ current_record.rr_ttl }}</td>
|
<td>{{ current_record.rr_ttl }}</td>
|
||||||
<td>{{ current_record.rr_class }}</td>
|
<td>{{ current_record.rr_class }}</td>
|
||||||
|
|
Loading…
Reference in New Issue