gender email phone
This commit is contained in:
parent
aeff66af6c
commit
f073961e35
11 changed files with 20 additions and 49 deletions
|
@ -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"),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue