Merge branch 'bug/13917' into release/0.10.2
[ganeti_webmgr.git] / ganeti_web / templates / ganeti / muddle / main_menu_search.html
bloba6402cf3f0a3acbbe0e629b550d7d7708e718dfa
1 <!-- autocomplete search box -->
3 {% if user.is_superuser %}
4 {% load i18n %}
5 <script type="text/javascript" src="{{STATIC_URL}}/js/autocomplete_search.js"></script>
6 <script type="text/javascript">
7 $(function(){
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 %}');
14 });
15 </script>
16 <h3>{% trans "Search" %}</h3>
17 <form id="search_form" action="{% url search %}" method="get">
18 <input id="search_box" type="text" name="q" />
19 </form>
20 {% endif %}