Parent: [77df3f] (diff)

Child: [5350dd] (diff)

Download this file

forms.py    23 lines (17 with data), 940 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
# This Source Code Form of OSSEval is subject to the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE, v. 3.0. If a copy of the AGPL was not
# distributed with this file, You can obtain one at http://www.gnu.org/licenses/agpl.txt
#
# OSSeval is powered by the SOS Open Source AGPL edition.
# The AGPL requires that you do not remove the SOS Open Source attribution and copyright
# notices from the user interface (see section 5.d below).
# OSSEval Copyright 2014 Bitergium SLL
# SOS Open Source Copyright 2012 Roberto Galoppini
# Author: Davide Galletti
from django import forms
from django.forms.widgets import RadioSelect
class SearchForm(forms.Form):
TARGETS = [['0','All forges'],['5','FSF'],['2','FM'],['12','GC'],['11','GH'],['100','Ohloh']]
target = forms.ChoiceField( widget=RadioSelect(), choices=TARGETS)
name = forms.CharField(max_length=50)
analysis_id = forms.CharField(widget=forms.HiddenInput())