2
0
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:
2025-12-28 00:50:36 +00:00
parent 6fa8f24ba5
commit 8706991888
4 changed files with 102 additions and 4 deletions

View File

@@ -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
)