Ticket #1102: django_admin_html_patch_1.diff

File django_admin_html_patch_1.diff, 1.7 KB (added by L.Plant.98@…, 18 years ago)

patch

  • django/contrib/admin/templates/admin/search_form.html

     
    22{% load i18n %}
    33{% if cl.lookup_opts.admin.search_fields %}
    44<div id="toolbar"><form id="changelist-search" action="" method="get">
    5 <label><img src="{% admin_media_prefix %}img/admin/icon_searchbox.png" /></label>
     5<div>
     6<label><img src="{% admin_media_prefix %}img/admin/icon_searchbox.png" alt="Search"/></label>
    67<input type="text" size="40" name="{{ search_var }}" value="{{ cl.query|escape }}" id="searchbar" />
    78<input type="submit" value="{% trans 'Go' %}" />
    89{% if show_result_count %}
     
    1112{% for pair in cl.params.items %}
    1213    {% ifnotequal pair.0 search_var %}<input type="hidden" name="{{ pair.0|escape }}" value="{{ pair.1|escape }}"/>{% endifnotequal %}
    1314{% endfor %}
     15</div>
    1416</form></div>
    1517<script type="text/javascript">document.getElementById("searchbar").focus();</script>
    1618{% endif %}
  • django/contrib/admin/templates/admin/change_list_results.html

     
     1{% if results %}
    12<table cellspacing="0">
    23<thead>
    34<tr>
     
    78{% if header.sortable %}</a>{% endif %}</th>{% endfor %}
    89</tr>
    910</thead>
     11<tbody>
    1012{% for result in results %}
    1113<tr class="{% cycle row1,row2 %}">{% for item in result %}{{ item }}{% endfor %}</tr>
    1214{% endfor %}
     15</tbody>
    1316</table>
     17{% endif %}
     18 No newline at end of file
Back to Top