"""
Forms for the rdap_explorer project, query app.
"""

from django import forms


class QueryForm(forms.Form):
    query = forms.CharField(
        label='',
        max_length=45,  # Max length of an IPv6 address.
        widget=forms.TextInput(attrs={
            'class': 'form-input input-lg',  # TODO: Move this in theme!
            'placeholder': 'IPv4/6 address'
        })
    )

@@ -249,16 +249,54 @@
 attrs=%7B%0A
+            'autofocus': 'autofocus',%0A
         

Add HTML5 autofocus attribute to query form field.