X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/24791e323ca709aa1c193096e6e4455390f7ac72..3306216e9d0c249c2699275aad212a7c4c3cc4a7:/apps/search/forms.py diff --git a/apps/search/forms.py b/apps/search/forms.py index 59b39ed65..9e0a07880 100755 --- a/apps/search/forms.py +++ b/apps/search/forms.py @@ -9,13 +9,13 @@ 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 super(SearchForm, self).__init__(*args, **kwargs) - self.fields['q'].widget.attrs['id'] = _('search') + self.fields['q'].widget.attrs['id'] = 'search' 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')