Make some of the html tag inheritance with tr, div, script and body more correct.

This commit is contained in:
Jeffrey Forman 2012-11-25 09:26:19 -05:00
parent a7b531cf9b
commit 412b75b8cb
2 changed files with 10 additions and 8 deletions

View File

@ -7,8 +7,11 @@
</head>
{% endblock header %}
<div class="row-fluid">
<body>
<script src="http://code.jquery.com/jquery.js"></script>
<script src="{{ STATIC_URL }}bootstrap/js/bootstrap.min.js"></script>
<div class="row-fluid">
<div class="span2">
{% block navigation %}
<ul class="nav nav-list">
@ -20,10 +23,6 @@
</div>
<div class="span10">
<body>
<script src="http://code.jquery.com/jquery.js"></script>
<script src="{{ STATIC_URL }}bootstrap/js/bootstrap.min.js"></script>
<div class="navbar">
<div class="navbar-inner">
<a class="brand" href="#">
@ -45,9 +44,10 @@
{% block body %}
{% endblock body %}
</body>
</div>
</div>
</body>
{% block footer %}
{% endblock footer %}

View File

@ -7,6 +7,7 @@ Zone listing for {{ zone_name }}
{% block body %}
{% if not errors %}
<form action="/delete_record/" method="post">{% csrf_token %}
<table class="table table-hover">
<tr>
<th>Select</th>
@ -18,7 +19,6 @@ Zone listing for {{ zone_name }}
<th></th>
</tr>
<form action="/delete_record/" method="post">{% csrf_token %}
<input type="hidden" name="dns_server" value="{{ dns_server }}">
<input type="hidden" name="zone_name" value="{{ zone_name }}">
{% for current_record in zone_array %}
@ -45,7 +45,9 @@ Zone listing for {{ zone_name }}
</tr>
{% endfor %}
<td colspan="7"><a href="/add_record/{{ dns_server }}/{{ zone_name }}/">Add Record</a></td>
<tr>
<td colspan="7"><a href="/add_record/{{ dns_server }}/{{ zone_name }}/">Add Record</a></td>
</tr>
</table>
<input type="submit" value="Delete Selected"/>
</form>