gender email phone

This commit is contained in:
gnuter3000 2023-06-26 18:39:32 +02:00
parent aeff66af6c
commit f073961e35
11 changed files with 20 additions and 49 deletions

View file

@ -10,29 +10,24 @@ class DateInput(forms.DateInput):
class RescuerForm(forms.ModelForm):
class Meta:
widgets = {"date_of_birth": DateInput(format="%Y-%m-%d")}
model = Rescuer
fields = [
"gender",
"first_name",
"last_name",
"street",
"street_number",
"zip_code",
"city",
"state",
"date_of_birth",
"email",
"phone",
]
labels = {
"gender": _("Geschlecht"),
"first_name": _("Vorname"),
"last_name": _("Nachname"),
"date_of_birth": _("Geburtstag"),
"street": _("Straße"),
"street_number": _("Hausnummer"),
"zip_code": _("Postleitzahl"),
"city": _("Stadt"),
"state": _("Land"),
"email": _("Email"),
"phone": _("Telefon"),
}