Fixed #1102 -- Fixed some HTML validation errors in admin templates. Thanks, Luke Plant
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1791 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
5f47ce0b4c
commit
632914f188
@ -1,3 +1,4 @@
|
|||||||
|
{% if results %}
|
||||||
<table cellspacing="0">
|
<table cellspacing="0">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@ -7,7 +8,10 @@
|
|||||||
{% if header.sortable %}</a>{% endif %}</th>{% endfor %}
|
{% if header.sortable %}</a>{% endif %}</th>{% endfor %}
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
<tbody>
|
||||||
{% for result in results %}
|
{% for result in results %}
|
||||||
<tr class="{% cycle row1,row2 %}">{% for item in result %}{{ item }}{% endfor %}</tr>
|
<tr class="{% cycle row1,row2 %}">{% for item in result %}{{ item }}{% endfor %}</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
{% endif %}
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% if cl.lookup_opts.admin.search_fields %}
|
{% if cl.lookup_opts.admin.search_fields %}
|
||||||
<div id="toolbar"><form id="changelist-search" action="" method="get">
|
<div id="toolbar"><form id="changelist-search" action="" method="get">
|
||||||
<label><img src="{% admin_media_prefix %}img/admin/icon_searchbox.png" /></label>
|
<div><!-- DIV needed for valid HTML -->
|
||||||
|
<label><img src="{% admin_media_prefix %}img/admin/icon_searchbox.png" alt="Search" /></label>
|
||||||
<input type="text" size="40" name="{{ search_var }}" value="{{ cl.query|escape }}" id="searchbar" />
|
<input type="text" size="40" name="{{ search_var }}" value="{{ cl.query|escape }}" id="searchbar" />
|
||||||
<input type="submit" value="{% trans 'Go' %}" />
|
<input type="submit" value="{% trans 'Go' %}" />
|
||||||
{% if show_result_count %}
|
{% if show_result_count %}
|
||||||
@ -11,6 +12,7 @@
|
|||||||
{% for pair in cl.params.items %}
|
{% for pair in cl.params.items %}
|
||||||
{% ifnotequal pair.0 search_var %}<input type="hidden" name="{{ pair.0|escape }}" value="{{ pair.1|escape }}"/>{% endifnotequal %}
|
{% ifnotequal pair.0 search_var %}<input type="hidden" name="{{ pair.0|escape }}" value="{{ pair.1|escape }}"/>{% endifnotequal %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</div>
|
||||||
</form></div>
|
</form></div>
|
||||||
<script type="text/javascript">document.getElementById("searchbar").focus();</script>
|
<script type="text/javascript">document.getElementById("searchbar").focus();</script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user