resource_name=forms.CharField(required=True,max_length=4096,label=_('Please describe the discrimination'),help_text=_("What service or site, or person is unavailable or seems artificially slowed down. e.g. VoIP, p2p, filesharing, specific websites, etc."))
country=forms.ChoiceField(required=True,choices=(('',''),)+tuple(sorted(COUNTRIES,key=itemgetter(1))),label=_("Country"),help_text=_('EU member state where the discrimination is reported.'))
country=forms.ChoiceField(required=True,choices=(('',''),)+tuple(sorted(COUNTRIES,key=itemgetter(1))),label=_("Country"),help_text=_('EU member state where the discrimination is reported.'))
operator=forms.CharField(required=True,max_length=256,label=_("Operator"),help_text=_('The ISP or operator providing the Internet service.'))
contract=forms.CharField(required=True,max_length=256,label=_("Contract"),help_text=_('The specific contract at the ISP provider. (please be as specific as possible)'))
media=forms.ChoiceField(required=True,choices=tuple(sorted(MEDIA,key=itemgetter(1))),label=_('Is the Internet connection over mobile or fixed line?'))
media=forms.ChoiceField(required=True,choices=tuple(sorted(MEDIA,key=itemgetter(1))),label=_('Is the Internet connection over mobile or fixed line?'))
comment=forms.CharField(required=True,widget=AdvancedEditor(),label=_('Please describe the symptoms you are experiencing.'))
email=forms.EmailField(required=True,label=_('Email (set this to enable saving)'),help_text=_("We need your email to validate your report. Your email address is obligatory, but we will never use your personal data for anything else than checking the submission. (see next for an optional exception)"))
consent=forms.BooleanField(required=False,label=_("I want to help further"),help_text=_("We need your consent to contact you for clarifications regarding your report. This is optional, but helps us improve the quality of the reports. Thanks!"))
...
...
@@ -37,11 +40,12 @@ class AddViolation(forms.Form):
type=forms.ChoiceField(required=True,choices=tuple(TYPES),label=_('How would you describe the discrimination?'))
captcha=CaptchaField(label=_("In order to protect against spam, please fill in the result of the following calculation. (note the + and the * are somewhat confusing)"))
classSearchViolation(SearchForm):
country=forms.ChoiceField(required=False,choices=(('',''),)+tuple(sorted(COUNTRIES,key=itemgetter(1))),label=_("Country"),help_text=_('EU member state where the discrimination is reported.'))
country=forms.ChoiceField(required=False,choices=(('',''),)+tuple(sorted(COUNTRIES,key=itemgetter(1))),label=_("Country"),help_text=_('EU member state where the discrimination is reported.'))
operator=forms.CharField(required=False,max_length=256,label=_("Operator"),help_text=_('The ISP or operator providing the Internet service.'))
contract=forms.CharField(required=False,max_length=256,label=_("Contract"),help_text=_('The specific contract at the ISP provider. (please be as specific as possible)'))
media=forms.ChoiceField(required=False,choices=(('',''),)+tuple(sorted(MEDIA,key=itemgetter(1))),label=_('Is the Internet connection over mobile or fixed line?'))
media=forms.ChoiceField(required=False,choices=(('',''),)+tuple(sorted(MEDIA,key=itemgetter(1))),label=_('Is the Internet connection over mobile or fixed line?'))
defsearch(self):
# By default, the search field is q. So let's check if it's empty
...
...
@@ -67,5 +71,6 @@ class SearchViolation(SearchForm):
returnsqs
classQuickSearchViolation(forms.Form):
query=forms.CharField(required='True',max_length=256,label=_("Search"),help_text=_('Search for an existing violation'))