jazzmin as a more beauty admin panel
This commit is contained in:
parent
8ea5c87c9c
commit
aca1c3c3fa
117 changed files with 4 additions and 0 deletions
31
app/rescuer/forms.py
Normal file
31
app/rescuer/forms.py
Normal file
|
@ -0,0 +1,31 @@
|
|||
from django import forms
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from .models import Rescuer
|
||||
|
||||
|
||||
class DateInput(forms.DateInput):
|
||||
input_type = "date"
|
||||
|
||||
|
||||
class RescuerForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = Rescuer
|
||||
fields = [
|
||||
"first_name",
|
||||
"last_name",
|
||||
"street",
|
||||
"street_number",
|
||||
"zip_code",
|
||||
"city",
|
||||
"phone",
|
||||
]
|
||||
labels = {
|
||||
"first_name": _("Vorname"),
|
||||
"last_name": _("Nachname"),
|
||||
"street": _("Straße"),
|
||||
"street_number": _("Hausnummer"),
|
||||
"zip_code": _("Postleitzahl"),
|
||||
"city": _("Stadt"),
|
||||
"phone": _("Telefon"),
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue