X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/14129c2a4e9b94274297efc32752f64a6a2b77a7..df053d3c7f0f292d1ab4d3407313da6fd7489222:/apps/search/forms.py diff --git a/apps/search/forms.py b/apps/search/forms.py index 60521f96a..9e0a07880 100755 --- a/apps/search/forms.py +++ b/apps/search/forms.py @@ -9,7 +9,7 @@ from search.fields import JQueryAutoCompleteSearchField class SearchForm(forms.Form): - q = JQueryAutoCompleteSearchField() # {'minChars': 2, 'selectFirst': True, 'cacheLength': 50, 'matchContains': "word"}) + q = JQueryAutoCompleteSearchField(label=_('Search')) # {'minChars': 2, 'selectFirst': True, 'cacheLength': 50, 'matchContains': "word"}) def __init__(self, source, *args, **kwargs): kwargs['auto_id'] = False @@ -18,4 +18,4 @@ class SearchForm(forms.Form): self.fields['q'].widget.attrs['autocomplete'] = 'off' self.fields['q'].widget.attrs['data-source'] = source if not 'q' in self.data: - self.fields['q'].widget.attrs['title'] = _('title, author, theme/topic, epoch, kind, genre, phrase') + self.fields['q'].widget.attrs['placeholder'] = _('title, author, theme/topic, epoch, kind, genre, phrase')