Added a help message to the search view

This commit is contained in:
Roberto Rosario
2011-06-20 00:31:31 -04:00
parent b614c4263f
commit c4d6db5217
3 changed files with 9 additions and 0 deletions

View File

@@ -1 +1,3 @@
from navigation.api import register_sidebar_template
register_sidebar_template(['search'], 'search_help.html')

View File

@@ -0,0 +1,5 @@
{% load i18n %}
<div class="block notice">
<h4>{% trans "Help" %}</h4>
<p>{% blocktrans %}Enter the desired search keywords separated by space. Only the top {{ search_results_limit }} results will be available.{% endblocktrans %}</p>
</div>

View File

@@ -7,6 +7,7 @@ from django.conf import settings
from dynamic_search.api import perform_search
from dynamic_search.forms import SearchForm
from dynamic_search.conf.settings import SHOW_OBJECT_TYPE
from dynamic_search.conf.settings import LIMIT
def results(request, form=None):
@@ -52,6 +53,7 @@ def results(request, form=None):
'multi_select_as_buttons': True,
'submit_label': _(u'Search'),
'submit_icon_famfam': 'zoom',
'search_results_limit': LIMIT,
})
if SHOW_OBJECT_TYPE: