diff --git a/binder/templates/base.htm b/binder/templates/base.htm index a286959..4ddc0e2 100644 --- a/binder/templates/base.htm +++ b/binder/templates/base.htm @@ -18,7 +18,7 @@ {% endblock navigation %} diff --git a/binder/templates/bcommon/list_server_zones.htm b/binder/templates/bcommon/list_server_zones.htm index a90a7d7..cd9b678 100644 --- a/binder/templates/bcommon/list_server_zones.htm +++ b/binder/templates/bcommon/list_server_zones.htm @@ -16,7 +16,7 @@ Server Zone List for {{ dns_server }} {% for current_zone in zone_array %} - {{ current_zone.zone_name }} + {{ current_zone.zone_name }} {{ current_zone.view_name }} {{ current_zone.zone_class }} diff --git a/binder/templates/bcommon/list_servers.htm b/binder/templates/bcommon/list_servers.htm index 366b98b..8f6f22c 100644 --- a/binder/templates/bcommon/list_servers.htm +++ b/binder/templates/bcommon/list_servers.htm @@ -13,7 +13,7 @@ Server List {% for current_server in server_info %} - {{ current_server.host_name }} + {{ current_server.host_name }} {% for type, data in current_server.ip_address %} {{type}}: {{data}}
{% endfor %} diff --git a/binder/templates/bcommon/list_zone.htm b/binder/templates/bcommon/list_zone.htm index 54ec13d..848e010 100644 --- a/binder/templates/bcommon/list_zone.htm +++ b/binder/templates/bcommon/list_zone.htm @@ -7,7 +7,7 @@ Zone listing for {{ zone_name }} on {{ dns_server }} {% block body %} {% if not errors %} -
{% csrf_token %} +{% csrf_token %} @@ -36,7 +36,7 @@ Zone listing for {{ zone_name }} on {{ dns_server }} @@ -46,7 +46,7 @@ Zone listing for {{ zone_name }} on {{ dns_server }} {% endfor %} - +
Select
Add RecordAdd Record
diff --git a/binder/urls.py b/binder/urls.py index 80b5120..97c5130 100644 --- a/binder/urls.py +++ b/binder/urls.py @@ -1,4 +1,5 @@ from django.conf.urls import patterns, include, url +from django.core.urlresolvers import reverse from django.contrib import admin admin.autodiscover() @@ -8,15 +9,15 @@ urlpatterns = patterns('', url(r'^$', 'binder.views.home_index', name="index"), url(r'^server_list/$', 'binder.views.view_server_list', name="server_list"), - url(r'^info/(?P[a-zA-Z0-9.-]+)/$', 'binder.views.view_server_zones', name="server_zones"), - url(r'^info/(?P[a-zA-Z0-9.-]+)/(?P[a-zA-Z0-9.-]+)/$', 'binder.views.view_zone_records', name="zone_records"), + url(r'^info/(?P[a-zA-Z0-9.-]+)/$', 'binder.views.view_server_zones', name="server_zone_list"), + url(r'^info/(?P[a-zA-Z0-9.-]+)/(?P[a-zA-Z0-9.-]+)/$', 'binder.views.view_zone_records', name="zone_list"), - url(r'^add_record/(?P[a-zA-Z0-9.-]+)/(?P[a-zA-Z0-9.-]+)/$', 'binder.views.view_add_record', name="add_record_initial"), + url(r'^add_record/(?P[a-zA-Z0-9.-]+)/(?P[a-zA-Z0-9.-]+)/$', 'binder.views.view_add_record', name="add_record"), url(r'^add_record/result/$', 'binder.views.view_add_record_result', name="add_record_result"), - url(r'^delete_record/$', 'binder.views.view_delete_record', name="delete_record_initial"), + url(r'^delete_record/$', 'binder.views.view_delete_record', name="delete_record"), url(r'^delete_record/result/$', 'binder.views.view_delete_result', name="delete_record_result"), - url(r'^add_cname/(?P[a-zA-Z0-9.-]+)/(?P[a-zA-Z0-9.-]+)/(?P[a-zA-Z0-9-]+)/$', 'binder.views.view_add_cname_record', name="add_cname_initial"), + url(r'^add_cname/(?P[a-zA-Z0-9.-]+)/(?P[a-zA-Z0-9.-]+)/(?P.*?)/$', 'binder.views.view_add_cname_record', name="add_cname"), url(r'^add_cname_record/result/$', 'binder.views.view_add_cname_result', name="add_cname_result"), )