summaryrefslogtreecommitdiff
path: root/archaeological_files_pdl/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2015-02-13 13:20:45 +0100
committerÉtienne Loks <etienne.loks@proxience.com>2015-05-06 15:48:16 +0200
commita584b08f7c347af2fb85df86ddd89430c14824c0 (patch)
tree46d9ec7b2553729262c65ff88be09e3cadb7c91d /archaeological_files_pdl/forms.py
parent059ab3c6a713fc9e84f2ff5f57664a407edd0985 (diff)
downloadIshtar-a584b08f7c347af2fb85df86ddd89430c14824c0.tar.bz2
Ishtar-a584b08f7c347af2fb85df86ddd89430c14824c0.zip
Wizard: search on multiple form for current town - Add research files form on archaeological_files_pdl
Diffstat (limited to 'archaeological_files_pdl/forms.py')
-rw-r--r--archaeological_files_pdl/forms.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/archaeological_files_pdl/forms.py b/archaeological_files_pdl/forms.py
index 21ed4238a..824254d37 100644
--- a/archaeological_files_pdl/forms.py
+++ b/archaeological_files_pdl/forms.py
@@ -93,6 +93,20 @@ class FileFormPlanning(forms.Form):
required=False, validators=[validators.MinValueValidator(0),
validators.MaxValueValidator(999999999)])
+class FileFormResearchAddress(forms.Form):
+ form_label = _(u"Address")
+ associated_models = {'main_town':models.Town}
+ main_town = get_advanced_town_field(required=True)
+ locality = forms.CharField(label=_(u"Locality"), max_length=100,
+ required=False)
+ address = forms.CharField(label=_(u"Address (number/street)"),
+ widget=forms.Textarea(
+ attrs={"placeholder":_(u"Number/street")}),
+ required=False,
+ )
+ postal_code = forms.CharField(label=_(u"Postal code"), max_length=10,
+ required=False)
+
class FileFormGeneralContractor(forms.Form):
form_label = _(u"General contractor")
associated_models = {'general_contractor':models.Person}