diff options
author | Michael Elkins <melkins@tislabs.com> | 2012-11-16 00:08:22 +0000 |
---|---|---|
committer | Michael Elkins <melkins@tislabs.com> | 2012-11-16 00:08:22 +0000 |
commit | ecbfc738bf09f1982ddbf43df833d3fbd1464ff3 (patch) | |
tree | 15081958446ba0d5facec2d804c3a789b2ed3564 /rpkid | |
parent | 756fdbe0d7eda1e98663c62bb3e57f2c18e88ee1 (diff) |
add "autofocus=true" to the text boxes for entering ASNs and prefixes
see #344
svn path=/trunk/; revision=4881
Diffstat (limited to 'rpkid')
-rw-r--r-- | rpkid/rpki/gui/app/forms.py | 11 |
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') |