mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2026-02-08 14:37:53 +00:00
initial new prospect form
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
# from tinymce.widgets import TinyMCE
|
||||
import re
|
||||
|
||||
@@ -286,3 +285,32 @@ class EntranceLetterForm(ModelForm):
|
||||
self.instance.validate_unique()
|
||||
except forms.ValidationError as e:
|
||||
self._update_errors(e)
|
||||
|
||||
|
||||
class NewProspectForm(forms.Form):
|
||||
date_found = forms.DateField(
|
||||
label="Date Found",
|
||||
widget=forms.DateInput(attrs={"type": "date"})
|
||||
)
|
||||
area_code = forms.CharField(
|
||||
label="Area Code",
|
||||
max_length=10
|
||||
)
|
||||
identifier = forms.CharField(
|
||||
label="Identifier (e.g. 2025-AB-01)",
|
||||
max_length=20
|
||||
)
|
||||
discovery_name = forms.CharField(
|
||||
label="Discovery Name",
|
||||
max_length=100
|
||||
)
|
||||
gps_lat = forms.DecimalField(
|
||||
label="GPS Latitude",
|
||||
max_digits=10,
|
||||
decimal_places=7
|
||||
)
|
||||
gps_long = forms.DecimalField(
|
||||
label="GPS Longitude",
|
||||
max_digits=10,
|
||||
decimal_places=7
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user