Private
Public Access
1
0

adding poll for next week sessions

This commit is contained in:
2025-07-20 16:15:15 +02:00
parent 5b6e87fedd
commit 01d4cf659e
8 changed files with 253 additions and 2 deletions

View File

@@ -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(