summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2013-12-05 11:01:34 +0100
committerÉtienne Loks <etienne.loks@peacefrogs.net>2013-12-05 11:01:34 +0100
commit522d422781fa622040f2a77d0bb85187cc386750 (patch)
tree7d09f2d65adf2a8a5f50c99add7bee2ebf08ca0e
parent9520cb4de1f871988ecc05c19ffdb78d050f5bcc (diff)
downloadIshtar-522d422781fa622040f2a77d0bb85187cc386750.tar.bz2
Ishtar-522d422781fa622040f2a77d0bb85187cc386750.zip
Add address to person form (refs #1527)
-rw-r--r--ishtar_common/forms_common.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/ishtar_common/forms_common.py b/ishtar_common/forms_common.py
index 661709a09..584759c29 100644
--- a/ishtar_common/forms_common.py
+++ b/ishtar_common/forms_common.py
@@ -132,6 +132,15 @@ class PersonForm(forms.Form):
validators=[name_validator])
name = forms.CharField(label=_(u"Name"), max_length=30,
validators=[name_validator])
+ address = forms.CharField(label=_(u"Address"), widget=forms.Textarea,
+ required=False)
+ address_complement = forms.CharField(label=_(u"Address complement"),
+ widget=forms.Textarea, required=False)
+ postal_code = forms.CharField(label=_(u"Postal code"), max_length=10,
+ required=False)
+ town = forms.CharField(label=_(u"Town"), max_length=30, required=False)
+ country = forms.CharField(label=_(u"Country"), max_length=30,
+ required=False)
email = forms.CharField(label=_(u"Email"), max_length=40, required=False,
validators=[validators.validate_email])
attached_to = forms.IntegerField(label=_("Current organization"),