From 65592dc42db00ef5ff1a82ccdacdc6c682783986 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Fri, 24 Nov 2017 09:35:47 +0100 Subject: [PATCH] Checkout step Questions: Automatically focus first field --- src/pretix/presale/forms/checkout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/presale/forms/checkout.py b/src/pretix/presale/forms/checkout.py index e521f7cc75..04782e6e5c 100644 --- a/src/pretix/presale/forms/checkout.py +++ b/src/pretix/presale/forms/checkout.py @@ -30,7 +30,7 @@ class ContactForm(forms.Form): help_text=_('Make sure to enter a valid email address. We will send you an order ' 'confirmation including a link that you need in case you want to make ' 'modifications to your order or download your ticket later.'), - widget=forms.EmailInput(attrs={'data-typocheck-target': '1'})) + widget=forms.EmailInput(attrs={'data-typocheck-target': '1', 'autofocus': 'autofocus'})) def __init__(self, *args, **kwargs): self.event = kwargs.pop('event')