summaryrefslogtreecommitdiff
path: root/ishtar_common/forms_common.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2023-01-20 23:18:39 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2023-01-20 23:19:08 +0100
commit58d60423cbb70b0466e7047f8a87fbfa15ce58c8 (patch)
treee9f637b9ca917a5c89658ec42dcfcef777ef8db3 /ishtar_common/forms_common.py
parentb796608b7327c49be434ee7e7539b0e5484e09cf (diff)
downloadIshtar-58d60423cbb70b0466e7047f8a87fbfa15ce58c8.tar.bz2
Ishtar-58d60423cbb70b0466e7047f8a87fbfa15ce58c8.zip
Person search: salutation/title fields
Diffstat (limited to 'ishtar_common/forms_common.py')
-rw-r--r--ishtar_common/forms_common.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ishtar_common/forms_common.py b/ishtar_common/forms_common.py
index 9a52915f5..2018b8227 100644
--- a/ishtar_common/forms_common.py
+++ b/ishtar_common/forms_common.py
@@ -763,6 +763,8 @@ class PersonSelect(CustomForm, TableSelect):
)
name = forms.CharField(label=_("Name"), max_length=200)
surname = forms.CharField(label=_("Surname"), max_length=50)
+ title = forms.ChoiceField(label=_("Title"), choices=[])
+ salutation = forms.CharField(label=_("Salutation"), max_length=200)
email = forms.CharField(label=_("Email"), max_length=75)
person_types = forms.ChoiceField(label=_("Type"), choices=[])
attached_to = forms.IntegerField(
@@ -777,6 +779,7 @@ class PersonSelect(CustomForm, TableSelect):
def __init__(self, *args, **kwargs):
super(PersonSelect, self).__init__(*args, **kwargs)
self.fields["person_types"].choices = models.PersonType.get_types()
+ self.fields["title"].choices = models.TitleType.get_types()
class PersonFormSelection(CustomFormSearch):