Replaces hardcoded links in templates with Djangos url tag.
This commit is contained in:
parent
1137b97239
commit
5476314232
|
@ -20,7 +20,7 @@
|
||||||
{% block navigation %}
|
{% block navigation %}
|
||||||
<ul class="nav nav-pills nav-stacked">
|
<ul class="nav nav-pills nav-stacked">
|
||||||
<li role="presentation" class="active">Actions</li>
|
<li role="presentation" class="active">Actions</li>
|
||||||
<li role="presentation"><a href="/">Home</a></li>
|
<li role="presentation"><a href="{% url "index" %}">Home</a></li>
|
||||||
<li role="presentation"><a href="{% url "server_list" %}">Server List</a></li>
|
<li role="presentation"><a href="{% url "server_list" %}">Server List</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
{% endblock navigation %}
|
{% endblock navigation %}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
{% block pageheader %}Add CNAME record for {{ originating_record }}{% endblock pageheader %}
|
{% block pageheader %}Add CNAME record for {{ originating_record }}{% endblock pageheader %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<form class="form-horizontal" action="/add_cname_record/result/" method="post">{% csrf_token %}
|
<form class="form-horizontal" action="{% url "add_cname_result" %}" method="post">{% csrf_token %}
|
||||||
<legend>Create CNAME record</legend>
|
<legend>Create CNAME record</legend>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="id_dns_server" class="control-label col-md-2">DNS Server</label>
|
<label for="id_dns_server" class="control-label col-md-2">DNS Server</label>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
{% block pageheader %}Add record in {{ zone_name }}{% endblock pageheader %}
|
{% block pageheader %}Add record in {{ zone_name }}{% endblock pageheader %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<form class="form-horizontal" action="/add_record/result/" method="POST">{% csrf_token %}
|
<form class="form-horizontal" action="{% url "add_record_result" %}" method="POST">{% csrf_token %}
|
||||||
<legend>Create Record</legend>
|
<legend>Create Record</legend>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="id_dns_server" class="control-label col-md-2">DNS Server</label>
|
<label for="id_dns_server" class="control-label col-md-2">DNS Server</label>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
{% block pageheader %}Delete record(s) in {{ zone_name }}{% endblock pageheader %}
|
{% block pageheader %}Delete record(s) in {{ zone_name }}{% endblock pageheader %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<form action="/delete_record/result/" method="POST">
|
<form action="{% url "delete_record_result" %}" method="POST">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<table class="sortable table table-hover">
|
<table class="sortable table table-hover">
|
||||||
<tr>
|
<tr>
|
||||||
|
|
Loading…
Reference in New Issue