Skip to content
Snippets Groups Projects
Commit b7d71520 authored by Alexa Valentová's avatar Alexa Valentová
Browse files

fix prepopulation

parent be55a3df
Branches
No related tags found
2 merge requests!1208Release,!1203fix prepopulation
Pipeline #20322 passed
......@@ -72,7 +72,12 @@ class CareerSubmissionForm(forms.Form):
max_length=256,
required=True,
widget=forms.TextInput(
attrs={"placeholder": "Jméno", "class": "lg:w-auto w-full"}
attrs={
"placeholder": "Jméno",
"class": "lg:w-auto w-full",
"value": "",
"autocomplete": "",
}
),
)
......@@ -81,7 +86,12 @@ class CareerSubmissionForm(forms.Form):
max_length=256,
required=True,
widget=forms.TextInput(
attrs={"placeholder": "Příjmení", "class": "lg:w-auto w-full"}
attrs={
"placeholder": "Příjmení",
"class": "lg:w-auto w-full",
"value": "",
"autocomplete": "",
}
),
)
......@@ -89,13 +99,26 @@ class CareerSubmissionForm(forms.Form):
min_length=1,
max_length=256,
required=True,
widget=forms.EmailInput(attrs={"placeholder": "Email", "class": "w-full"}),
widget=forms.EmailInput(
attrs={
"placeholder": "Email",
"class": "w-full",
"value": "",
"autocomplete": "",
}
),
)
phone = forms.IntegerField(
required=True,
widget=forms.NumberInput(
attrs={"type": "tel", "placeholder": "Telefon", "class": "w-full"}
attrs={
"type": "tel",
"placeholder": "Telefon",
"class": "w-full",
"value": "",
"autocomplete": "",
}
),
)
......
......@@ -610,8 +610,9 @@ Odeslání přihlášky selhalo:
{errors}
""",
)
else:
form = CareerSubmissionForm()
# Recreate form either way, since we don't want it to be prepopulated with data.
form = CareerSubmissionForm()
return render(
request,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment