summaryrefslogtreecommitdiff
path: root/ishtar_common/forms_common.py
diff options
context:
space:
mode:
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):