bundesdata_web_app/app/speeches/forms.py

22 lines
646 B
Python
Raw Normal View History

2019-02-28 13:09:53 +00:00
from django import forms
class SearchForm(forms.Form):
"""
Configures the html input form for the protocol search.
"""
query = forms.CharField(label="Suche Protokoll", max_length="200")
query.widget.attrs.update({"class": "autocomplete materialize-textarea",
"id": "icon_prefix2"})
class SearchFormSpeech(forms.Form):
"""
Configures the html input form for the speech search.
"""
query = forms.CharField(label="Suche Rede", max_length="200")
query.widget.attrs.update({"class": "autocomplete materialize-textarea",
"id": "icon_prefix2"})