summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Granberg <zorry@gentoo.org>2017-01-15 20:44:38 +0100
committerMagnus Granberg <zorry@gentoo.org>2017-01-15 20:44:38 +0100
commit5270ca757656869bc05f5de9ef7e772b0d0ab68a (patch)
tree6120993e7fa117a1d48d8280d0f092b409a7a79e /python/tbc_www/forms.py
parentfix ame 'adict' is not defined line 273 (diff)
downloadtinderbox-cluster-www-master.tar.gz
tinderbox-cluster-www-master.tar.bz2
tinderbox-cluster-www-master.zip
update logs and add password changeHEADmaster
Diffstat (limited to 'python/tbc_www/forms.py')
-rw-r--r--python/tbc_www/forms.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/python/tbc_www/forms.py b/python/tbc_www/forms.py
index 0a91b3b..40d1669 100644
--- a/python/tbc_www/forms.py
+++ b/python/tbc_www/forms.py
@@ -30,4 +30,18 @@ class BugForm(forms.Form):
class BugzillaUser(forms.Form):
BugzillaName = forms.CharField(label='Bugzilla Name', max_length=100)
- BugzillaPassword = forms.CharField(label='Bugzilla Password', max_length=100)
+ BugzillaPassword = forms.CharField(label='Bugzilla Password', max_length=100, widget=forms.PasswordInput)
+
+class LogsViews(forms.Form):
+ ChoicesComponent = (
+ ('All', 'All'),
+ ('Fail', 'Fail'),
+ ('Repoman', 'Repoman'),
+ ('Qa', 'Qa'),
+ ('Others', 'Others'),
+ ('Test', 'Test'),
+ ('Build', 'Build'),
+ )
+ LogView = forms.ChoiceField(widget=forms.Select, choices=ChoicesComponent, label='View')
+ def __str__(self):
+ return '%s' % (self.LogView)