Code

Ticket #1573: search_form.diff

File search_form.diff, 727 bytes (added by ubernostrum, 8 years ago)

Patch to add "for" attribute on label

Line 
1Index: search_form.html
2===================================================================
3--- search_form.html    (revision 2559)
4+++ search_form.html    (working copy)
5@@ -3,7 +3,7 @@
6 {% if cl.lookup_opts.admin.search_fields %}
7 <div id="toolbar"><form id="changelist-search" action="" method="get">
8 <div><!-- DIV needed for valid HTML -->
9-<label><img src="{% admin_media_prefix %}img/admin/icon_searchbox.png" alt="Search" /></label>
10+<label for="searchbar"><img src="{% admin_media_prefix %}img/admin/icon_searchbox.png" alt="Search" /></label>
11 <input type="text" size="40" name="{{ search_var }}" value="{{ cl.query|escape }}" id="searchbar" />
12 <input type="submit" value="{% trans 'Go' %}" />
13 {% if show_result_count %}