diff options
Diffstat (limited to 'archaeological_files_pdl/forms.py')
| -rw-r--r-- | archaeological_files_pdl/forms.py | 14 | 
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}  | 
