summaryrefslogtreecommitdiff
path: root/ishtar_common/forms_common.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-04-08 02:52:33 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-04-15 21:54:17 +0200
commitbb9e9cb8d1f5f7fb8b30cce231fccbd4b1cf86cf (patch)
tree8a9bebd6e80e2d8983930be1a6c74d42b9a816d1 /ishtar_common/forms_common.py
parent6d6896db8b13f0bf51d5202b84807d4f07ab8d1c (diff)
downloadIshtar-bb9e9cb8d1f5f7fb8b30cce231fccbd4b1cf86cf.tar.bz2
Ishtar-bb9e9cb8d1f5f7fb8b30cce231fccbd4b1cf86cf.zip
Adpat person form to new fields
Diffstat (limited to 'ishtar_common/forms_common.py')
-rw-r--r--ishtar_common/forms_common.py41
1 files changed, 31 insertions, 10 deletions
diff --git a/ishtar_common/forms_common.py b/ishtar_common/forms_common.py
index ae72d173f..1d8dc2092 100644
--- a/ishtar_common/forms_common.py
+++ b/ishtar_common/forms_common.py
@@ -260,18 +260,19 @@ class SimplePersonForm(NewItemForm):
validators=[name_validator])
raw_name = forms.CharField(label=_(u"Raw name"), max_length=300,
required=False)
- 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.EmailField(label=_(u"Email"), required=False)
+ phone_desc = forms.CharField(label=_(u"Phone description"), max_length=300,
+ required=False)
phone = forms.CharField(label=_(u"Phone"), max_length=18, required=False)
- mobile_phone = forms.CharField(label=_(u"Town"), max_length=18,
+ phone_desc2 = forms.CharField(label=_(u"Phone description 2"),
+ max_length=300, required=False)
+ phone2 = forms.CharField(label=_(u"Phone 2"), max_length=18,
+ required=False)
+ phone_desc3 = forms.CharField(label=_(u"Phone description 3"),
+ max_length=300, required=False)
+ phone3 = forms.CharField(label=_(u"Phone 3"), max_length=18,
+ required=False)
+ mobile_phone = forms.CharField(label=_(u"Mobile phone"), max_length=18,
required=False)
attached_to = forms.IntegerField(
label=_("Current organization"),
@@ -279,6 +280,26 @@ class SimplePersonForm(NewItemForm):
reverse_lazy('autocomplete-organization'),
associated_model=models.Organization, new=True),
validators=[models.valid_id(models.Organization)], required=False)
+ 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)
+ alt_address = forms.CharField(label=_(u"Other address: address"),
+ widget=forms.Textarea, required=False)
+ alt_address_complement = forms.CharField(
+ label=_(u"Other address: address complement"),
+ widget=forms.Textarea, required=False)
+ alt_postal_code = forms.CharField(label=_(u"Other address: postal code"),
+ max_length=10, required=False)
+ alt_town = forms.CharField(label=_(u"Other address: town"), max_length=30,
+ required=False)
+ alt_country = forms.CharField(label=_(u"Other address: country"),
+ max_length=30, required=False)
def __init__(self, *args, **kwargs):
super(SimplePersonForm, self).__init__(*args, **kwargs)