aboutsummaryrefslogtreecommitdiff
path: root/rpkid/rpki/gui/app/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'rpkid/rpki/gui/app/forms.py')
-rw-r--r--rpkid/rpki/gui/app/forms.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/rpkid/rpki/gui/app/forms.py b/rpkid/rpki/gui/app/forms.py
index 2dfbb6a5..9fdad55f 100644
--- a/rpkid/rpki/gui/app/forms.py
+++ b/rpkid/rpki/gui/app/forms.py
@@ -286,7 +286,11 @@ def AddASNForm(child):
"""
class _wrapped(forms.Form):
- asns = forms.CharField(label='ASNs', help_text='single ASN or range')
+ asns = forms.CharField(
+ label='ASNs',
+ help_text='single ASN or range',
+ widget=forms.TextInput(attrs={'autofocus': 'true'})
+ )
def clean_asns(self):
try:
@@ -319,7 +323,10 @@ def AddNetForm(child):
"""
class _wrapped(forms.Form):
- address_range = forms.CharField(help_text='CIDR or range')
+ address_range = forms.CharField(
+ help_text='CIDR or range',
+ widget=forms.TextInput(attrs={'autofocus': 'true'})
+ )
def clean_address_range(self):
address_range = self.cleaned_data.get('address_range')