Switch to unified view
a/OSSEval/OpenSourceProject/forms.py | b/OSSEval/OpenSourceProject/forms.py | ||
---|---|---|---|
... |
... |
||
13 | 13 | ||
14 | from django import forms |
14 | from django import forms |
15 | from django.forms.widgets import RadioSelect |
15 | from django.forms.widgets import RadioSelect |
16 | 16 | ||
17 | class SearchForm(forms.Form): |
17 | class SearchForm(forms.Form): |
18 | TARGETS = [['0','All forges'],['5','FSF'],['2','FM'],['12','GC'],['11','GH'],['100','Ohloh']] |
18 | TARGETS = [['0','All forges'],['5','FSF'],['2','FM'],['12','GC'],['11','GH'],['100','Ohloh'],['1200', 'APACHE'],['1300', 'ECLIPSE']]
|
19 | 19 | ||
20 | target = forms.ChoiceField( widget=RadioSelect(), choices=TARGETS) |
20 | target = forms.ChoiceField( widget=RadioSelect(), choices=TARGETS, initial = 0)
|
21 | name = forms.CharField(max_length=50) |
21 | name = forms.CharField(max_length=50) |
22 | analysis_id = forms.CharField(widget=forms.HiddenInput()) |
22 | analysis_id = forms.CharField(widget=forms.HiddenInput()) |