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"> <ul class="nav nav-list">
<li class="nav-header">Actions</li> <li class="nav-header">Actions</li>
<li><a href="/">Home</a></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> </ul>
{% endblock navigation %} {% endblock navigation %}
</div> </div>

View File

@ -16,7 +16,7 @@ Server Zone List for {{ dns_server }}
{% for current_zone in zone_array %} {% for current_zone in zone_array %}
<tr> <tr>
<td> <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>
<td>{{ current_zone.view_name }}</td> <td>{{ current_zone.view_name }}</td>
<td>{{ current_zone.zone_class }}</td> <td>{{ current_zone.zone_class }}</td>

View File

@ -13,7 +13,7 @@ Server List
</tr> </tr>
{% for current_server in server_info %} {% for current_server in server_info %}
<tr> <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 %} <td>{% for type, data in current_server.ip_address %}
{{type}}: {{data}}<br> {{type}}: {{data}}<br>
{% endfor %} {% endfor %}

View File

@ -7,7 +7,7 @@ Zone listing for {{ zone_name }} on {{ dns_server }}
{% block body %} {% block body %}
{% if not errors %} {% 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"> <table class="table table-hover sortable">
<tr> <tr>
<th>Select</th> <th>Select</th>
@ -36,7 +36,7 @@ Zone listing for {{ zone_name }} on {{ dns_server }}
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<li><a href="#">Edit Record (Coming Soon)</a></li> <li><a href="#">Edit Record (Coming Soon)</a></li>
{% if current_record.rr_type == "A" %} {% 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 %} {% endif %}
</ul> </ul>
</div> </div>
@ -47,7 +47,7 @@ Zone listing for {{ zone_name }} on {{ dns_server }}
</table> </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"/> <input type="submit" value="Delete Selected"/>
</form> </form>
{% endif %} {% endif %}