adding poll for next week sessions
This commit is contained in:
@@ -37,6 +37,19 @@ formaxlabels = axlabels.copy()
|
||||
formaxlabels.pop('None')
|
||||
parchoices = list(sorted(formaxlabels.items(), key=lambda x: x[1]))
|
||||
|
||||
class DeepWaterLoginForm(forms.Form):
|
||||
username = forms.CharField(
|
||||
max_length=150, label='Username',
|
||||
widget=forms.TextInput(attrs={'placeholder': 'Username'}))
|
||||
password = forms.CharField(
|
||||
max_length=128, label='Password',
|
||||
widget=forms.PasswordInput(attrs={'placeholder': 'Password'}))
|
||||
|
||||
def clean(self):
|
||||
cleaned_data = super(DeepWaterLoginForm, self).clean()
|
||||
if not cleaned_data.get('username') or not cleaned_data.get('password'):
|
||||
raise forms.ValidationError("Please enter both username and password.")
|
||||
return cleaned_data
|
||||
|
||||
class SurveyForm(forms.Form):
|
||||
surveydone = forms.ChoiceField(
|
||||
|
||||
Reference in New Issue
Block a user