Fix more errors

This commit is contained in:
2025-09-29 12:30:02 +08:00
parent 7f6ee28d7c
commit 2cf4e923f3
2 changed files with 19 additions and 21 deletions
+8 -9
View File
@@ -1,7 +1,6 @@
# encoding=utf-8
from flask_wtf import FlaskForm
from wtforms import BooleanField, StringField, PasswordField, TextField, IntegerField, TextAreaField, SubmitField, RadioField, SelectField
from wtforms.fields.html5 import DateField
from wtforms import BooleanField, StringField, PasswordField, IntegerField, TextAreaField, SubmitField, RadioField, SelectField, DateField
from wtforms_components import read_only
from wtforms import validators, ValidationError
from wtforms.validators import InputRequired, Email, Length
@@ -20,8 +19,8 @@ class motmAdminForm(FlaskForm):
class adminSettingsForm2(FlaskForm):
nextMatch = SelectField('Fixture', choices=[])
nextOppoClub = TextField('Next Opposition Club:')
nextOppoTeam = TextField("Next Opposition Team:")
nextOppoClub = StringField('Next Opposition Club:')
nextOppoTeam = StringField("Next Opposition Team:")
currMotM = SelectField('Current Man of the Match:', choices=[])
currDotD = SelectField('Current Dick of the Day:', choices=[])
saveButton = SubmitField('Save Settings')
@@ -29,12 +28,12 @@ class adminSettingsForm2(FlaskForm):
class goalsAssistsForm(FlaskForm):
fixtureNumber = TextField('Fixture Number')
fixtureNumber = StringField('Fixture Number')
match = SelectField('Fixture')
homeTeam = TextField('Home Team')
awayTeam = TextField('Away Team')
playerNumber = TextField('Player Number')
playerName = TextField('Player Name')
homeTeam = StringField('Home Team')
awayTeam = StringField('Away Team')
playerNumber = StringField('Player Number')
playerName = StringField('Player Name')
assists = SelectField('Assists:', choices=[(0, '0'), (1, '1'), (2, '2'), (3, '3'), (4, '4')])
goals = SelectField('Goals:', choices=[(0, '0'), (1, '1'), (2, '2'), (3, '3'), (4, '4')])
submit = SubmitField('Submit')