gcp-hockey-results/tables.py
Jonny Ervine 1ffa319b1e new file: app.py
new file:   appengine_config.py
	new file:   dbWrite.py
	new file:   forms.py
	new file:   main.py
	new file:   readSettings.py
	new file:   requirements.txt
	new file:   routes/__init__.py
	new file:   routes/_convenor.py
	new file:   routes/_hkfcD_motm.py
	new file:   routes/_matches.py
	new file:   routes/_search.py
	new file:   routes/dashboard.py
	new file:   static/css/bootstrap-theme.css
	new file:   static/css/bootstrap-theme.css.map
	new file:   static/css/bootstrap-theme.min.css
	new file:   static/css/bootstrap-theme.min.css.map
	new file:   static/css/bootstrap.css
	new file:   static/css/bootstrap.css.map
	new file:   static/css/bootstrap.min.css
	new file:   static/css/bootstrap.min.css.map
	new file:   static/css/dashboard.css
	new file:   static/css/dashboard.css.orig
	new file:   static/fonts/glyphicons-halflings-regular.eot
	new file:   static/fonts/glyphicons-halflings-regular.svg
	new file:   static/fonts/glyphicons-halflings-regular.ttf
	new file:   static/fonts/glyphicons-halflings-regular.woff
	new file:   static/fonts/glyphicons-halflings-regular.woff2
	new file:   static/js/bootstrap.js
	new file:   static/js/bootstrap.min.js
	new file:   static/js/dashboard.js
	new file:   static/js/npm.js
	new file:   tables.py
	new file:   templates/_about.html
	new file:   templates/_clubPlayingRecordResults.html
	new file:   templates/_clubPlayingRecords.html
	new file:   templates/_convenorClubAdd.html
	new file:   templates/_convenorClubAddResults.html
	new file:   templates/_convenorClubList.html
	new file:   templates/_convenorEditPlayerResults.html
	new file:   templates/_convenorEditSquadList.html
	new file:   templates/_convenorEditSquadListTeamSelect.html
	new file:   templates/_convenorFixtureList.html
	new file:   templates/_convenorPlayerAdd.html
	new file:   templates/_convenorPlayerAddResults.html
	new file:   templates/_convenorPlayerDbCreate.html
	new file:   templates/_convenorPlayerDbCreateResults.html
	new file:   templates/_convenorPlayerEdit.html
	new file:   templates/_convenorSquadList.html
	new file:   templates/_convenorSquadListResults.html
	new file:   templates/_convenorTeamAdd.html
	new file:   templates/_convenorTeamAddResults.html
	new file:   templates/_error.html
	new file:   templates/_goalsAssistsAdmin.html
	new file:   templates/_hkfcDAdminThanks.html
	new file:   templates/_hkfcDGoalsThanks.html
	new file:   templates/_hkfcDMatchComments.html
	new file:   templates/_hkfcDMatchSquad.html
	new file:   templates/_hkfcDMatchSquadReset.html
	new file:   templates/_hkfcDMatchSquadSelected.html
	new file:   templates/_hkfcDMotmAdmin.html
	new file:   templates/_hkfcDMotmVote.html
	new file:   templates/_hkfcDPlayerRemoved.html
	new file:   templates/_hkfcDPotYChart.html
	new file:   templates/_hkfcDVoteChart.html
	new file:   templates/_hkfcDVoteThanks.html
	new file:   templates/_hkfcPlayerDeleted.html
	new file:   templates/_matchDetails.html
	new file:   templates/_playerCheck.html
	new file:   templates/_playerCheckResults.html
	new file:   templates/_playerRecordResults.html
	new file:   templates/_playerRecords.html
	new file:   templates/_search.html
	new file:   templates/_searchResults.html
	new file:   templates/_teamRecordResults.html
	new file:   templates/_teamRecords.html
	new file:   templates/dashboard.html
	new file:   templates/results.html
	new file:   templates/search.html
Initial commit
2020-02-19 06:58:08 +00:00

88 lines
3.0 KiB
Python

from flask_table import Table, Col, LinkCol, ButtonCol
class Results(Table):
matchNumber = Col('Match Number')
matchDate = Col('Date')
matchTime = Col('Time')
matchHomeClub = Col('Home Club')
matchHomeTeam = Col('Home Team')
matchHomeScore = Col('Score')
matchAwayScore = Col('Score')
matchAwayClub = Col('Away Club')
matchAwayTeam = Col('Away Team')
matchUmpire1 = Col('Umpire 1')
matchUmpire2 = Col('Umpire 2')
matchOfficial = Col('Match Official')
id = Col('id', show=False)
class matchCardHome(Table):
playerNumber = Col('Player Number')
playerName = Col('Player Name')
class matchCardAway(Table):
playerNumber = Col('Player Number')
playerName = Col('Player Name')
class playerResults(Table):
playerNumber = Col('Player Number')
playerName = Col('Player Name')
appearances = Col('Appearances')
goals = Col('Goals')
class teamResults(Table):
opposition = Col('Opponent')
played = Col('Played')
matchesWon = Col('Won')
matchesDrawn = Col('Drawn')
matchesLost = Col('Lost')
goalsFor = Col('For')
goalsAgainst = Col('Against')
class clubPlayingRecord(Table):
playerNumber = Col('Player Number')
playerName = Col('Player Name')
appearances_A = Col('A Team Appearances')
appearances_B = Col('B Team Appearances')
appearances_C = Col('C Team Appearances')
appearances_D = Col('D Team Appearances')
appearances_E = Col('E Team Appearances')
appearances_F = Col('F Team Appearances')
appearances_G = Col('G Team Appearances')
appearances_H = Col('H Team Appearances')
class clubList(Table):
club = Col('Club Name')
team = Col('Team')
league = Col('Division')
class convenorSquadListTable(Table):
playerNumber = Col('Shirt Number')
playerForenames = Col('Forenames')
playerSurname = Col('Surname')
playerNickname = Col('Nickname')
playerChineseName = Col('Chinese Name')
playerEmail = Col('Email')
playerDob = Col('Date of Birth')
playerHkid = Col('HK ID Number')
playerTelNumber = Col('Contact Number')
edit = ButtonCol('Edit', 'routes.convenorEditPlayer', url_kwargs=dict(playerNumber='playerNumber'), button_attrs={"type" : "submit", "class" : "btn btn-primary"})
delete = ButtonCol('Delete', 'routes.convenorDeletePlayer', url_kwargs=dict(playerNumber='playerNumber'), button_attrs={"type" : "submit", "class" : "btn btn-danger"})
class matchSquadTable(Table):
playerNumber = Col('Player Number')
playerNickname = Col('Nickname')
playerSurname = Col('Surname')
playerForenames = Col('Forenames')
delete = ButtonCol('Delete', 'routes.delPlayerFromSquad', url_kwargs=dict(playerNumber='playerNumber'), button_attrs={"type" : "submit", "class" : "btn btn-danger"})
class convenorFixtureList(Table):
date = Col('Date')
division = Col('Division')
homeTeam = Col('Home Team')
awayTeam = Col('Away Team')
venue = Col('Venue')
time = Col('Time')
umpire1 = Col('Umpire 1')
umpire2 = Col('Umpire 2')