1 <!-- autocomplete search box -->
3 {% if user.is_superuser %}
5 <script type=
"text/javascript" src=
"{{STATIC_URL}}/js/autocomplete_search.js"></script>
6 <script type=
"text/javascript">
8 // initialize the autocomplete search box
9 if ($('#search_box').length
== 1) {
10 autocomplete_search($('#search_box'), $('#search_form'),
11 '{% url search-suggestions %}',
12 '{% url search-detail-lookup %}');
16 <h3>{% trans
"Search" %}
</h3>
17 <form id=
"search_form" action=
"{% url search %}" method=
"get">
18 <input id=
"search_box" type=
"text" name=
"q" />