40 lines
1.6 KiB
Python
40 lines
1.6 KiB
Python
# encoding=utf-8
|
|
from flask_wtf import FlaskForm
|
|
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
|
|
from datetime import datetime
|
|
|
|
|
|
class motmForm(FlaskForm):
|
|
startDate = DateField('DatePicker', format='%d-%m-%Y')
|
|
endDate = DateField('DatePicker', format='%d-%m-%Y')
|
|
|
|
|
|
class motmAdminForm(FlaskForm):
|
|
startDate = DateField('DatePicker', format='%d-%m-%Y')
|
|
endDate = DateField('DatePicker', format='%d-%m-%Y')
|
|
|
|
|
|
class adminSettingsForm2(FlaskForm):
|
|
nextMatch = SelectField('Fixture', choices=[])
|
|
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')
|
|
activateButton = SubmitField('Activate MotM Vote')
|
|
|
|
|
|
class goalsAssistsForm(FlaskForm):
|
|
fixtureNumber = StringField('Fixture Number')
|
|
match = SelectField('Fixture')
|
|
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')
|