Added a help message to the search view
This commit is contained in:
@@ -1 +1,3 @@
|
||||
from navigation.api import register_sidebar_template
|
||||
|
||||
register_sidebar_template(['search'], 'search_help.html')
|
||||
|
||||
5
apps/dynamic_search/templates/search_help.html
Normal file
5
apps/dynamic_search/templates/search_help.html
Normal 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>
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user