update url template references to be django 1.5 friendly

This commit is contained in:
Jeffrey Forman 2013-12-01 18:05:01 -05:00
parent 5ec7fc02c9
commit c2daf46358
4 changed files with 6 additions and 6 deletions

View File

@ -19,7 +19,7 @@
<ul class="nav nav-list">
<li class="nav-header">Actions</li>
<li><a href="/">Home</a></li>
<li><a href="{% url server_list %}">Server List</a></li>
<li><a href="{% url "server_list" %}">Server List</a></li>
</ul>
{% endblock navigation %}
</div>

View File

@ -16,7 +16,7 @@ Server Zone List for {{ dns_server }}
{% for current_zone in zone_array %}
<tr>
<td>
<a href="{% url zone_list dns_server=dns_server zone_name=current_zone.zone_name %}"> {{ current_zone.zone_name }}</a>
<a href="{% url "zone_list" dns_server=dns_server zone_name=current_zone.zone_name %}"> {{ current_zone.zone_name }}</a>
</td>
<td>{{ current_zone.view_name }}</td>
<td>{{ current_zone.zone_class }}</td>

View File

@ -13,7 +13,7 @@ Server List
</tr>
{% for current_server in server_info %}
<tr>
<td><a href="{% url server_zone_list dns_server=current_server.host_name %}"> {{ current_server.host_name }}</td>
<td><a href="{% url "server_zone_list" dns_server=current_server.host_name %}"> {{ current_server.host_name }}</td>
<td>{% for type, data in current_server.ip_address %}
{{type}}: {{data}}<br>
{% endfor %}

View File

@ -7,7 +7,7 @@ Zone listing for {{ zone_name }} on {{ dns_server }}
{% block body %}
{% if not errors %}
<form action="{% url delete_record %}" method="post">{% csrf_token %}
<form action="{% url "delete_record" %}" method="post">{% csrf_token %}
<table class="table table-hover sortable">
<tr>
<th>Select</th>
@ -36,7 +36,7 @@ Zone listing for {{ zone_name }} on {{ dns_server }}
<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 zone_name=zone_name record_name=current_record.rr_name %}">Add CNAME Pointer</a></li>
<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>
{% endif %}
</ul>
</div>
@ -47,7 +47,7 @@ Zone listing for {{ zone_name }} on {{ dns_server }}
</table>
<a href="{% url add_record dns_server=dns_server zone_name=zone_name %}">Add Record</a>
<a href="{% url "add_record" dns_server=dns_server zone_name=zone_name %}">Add Record</a>
<input type="submit" value="Delete Selected"/>
</form>
{% endif %}