From c7d33751e951f9cc4dfd90467854cc6e20cc341b Mon Sep 17 00:00:00 2001 From: Petr Šmerkl <46304018+SveterCZE@users.noreply.github.com> Date: Fri, 7 May 2021 23:21:08 +0200 Subject: expand search options for natural persons --- forms.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'forms.py') diff --git a/forms.py b/forms.py index 73e576a..56d9b65 100644 --- a/forms.py +++ b/forms.py @@ -9,6 +9,8 @@ Created on Sun Jan 17 10:05:34 2021 from wtforms import Form, StringField, SelectField, BooleanField from wtforms.fields.html5 import DateField +# CREATE A GENERAL CLASS TO REMOVE DUPLICITIES? + class JusticeSearchForm(Form): search_options = [("text_anywhere","Kedkoliv v textu"), ("text_beginning","Začátek výrazu"), @@ -107,6 +109,24 @@ class PersonSearchForm(Form): surname_search_selection = SelectField('', choices=search_options) surname_search_actual = SelectField('', choices=actual_options) + # Delete the duplicity + + obec_search = StringField(u'Obec:') + obec_search_selection = SelectField('', choices=search_options) + obec_search_actual = SelectField('', choices=actual_options) + + ulice_search = StringField(u'Ulice:') + ulice_search_selection = SelectField('', choices=search_options) + ulice_search_actual = SelectField('', choices=actual_options) + + cp_search = StringField(u'Číslo popisné:') + cp_search_selection = SelectField('', choices=search_options) + cp_search_actual = SelectField('', choices=actual_options) + + co_search = StringField(u'Číslo orientační:') + co_search_selection = SelectField('', choices=search_options) + co_search_actual = SelectField('', choices=actual_options) + person_actual_selection = SelectField('', choices=actual_options) birthday = DateField(u'Datum narození:', format='%Y-%m-%d') -- cgit