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> </head>
{% endblock header %} {% 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"> <div class="span2">
{% block navigation %} {% block navigation %}
<ul class="nav nav-list"> <ul class="nav nav-list">
@ -20,10 +23,6 @@
</div> </div>
<div class="span10"> <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">
<div class="navbar-inner"> <div class="navbar-inner">
<a class="brand" href="#"> <a class="brand" href="#">
@ -45,9 +44,10 @@
{% block body %} {% block body %}
{% endblock body %} {% endblock body %}
</body>
</div> </div>
</div> </div>
</body>
{% block footer %} {% block footer %}
{% endblock footer %} {% endblock footer %}

View File

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