aboutsummaryrefslogtreecommitdiff
path: root/rpkid/rpki/gui/app/forms.py
diff options
context:
space:
mode:
authorMichael Elkins <melkins@tislabs.com>2012-01-17 05:01:57 +0000
committerMichael Elkins <melkins@tislabs.com>2012-01-17 05:01:57 +0000
commit223102db50c00b931bd40e3e9af0b407d345517d (patch)
tree7dc97fb47a3d0c0d70bd826c3405acf419d8938d /rpkid/rpki/gui/app/forms.py
parent525a7a3af91f285a3fe6530adfd898b383bd050d (diff)
forgot to include html templates in last commit
svn path=/branches/tk161/; revision=4158
Diffstat (limited to 'rpkid/rpki/gui/app/forms.py')
-rw-r--r--rpkid/rpki/gui/app/forms.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/rpkid/rpki/gui/app/forms.py b/rpkid/rpki/gui/app/forms.py
index aad9185d..ecac5e0a 100644
--- a/rpkid/rpki/gui/app/forms.py
+++ b/rpkid/rpki/gui/app/forms.py
@@ -215,8 +215,9 @@ def ImportChildForm(parent_conf, *args, **kwargs):
def ImportParentForm(conf, *args, **kwargs):
class wrapped(forms.Form):
- handle = forms.CharField(max_length=30, help_text="Parent's RPKI handle")
- xml = forms.FileField(help_text="XML response from parent", required=False)
+ handle = forms.CharField(max_length=30, help_text="Parent's RPKI handle", required=True)
+ xml = forms.FileField(help_text="XML response from parent", required=True,
+ widget=forms.FileInput(attrs={'class': 'xlarge'}))
def clean_handle(self):
if conf.parents.filter(handle=self.cleaned_data['handle']):