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
91 lines
2.7 KiB
HTML
91 lines
2.7 KiB
HTML
<doctype html>
|
|
<head>
|
|
<title>List of players from 2018/19 season - Python Flask MySQL app</title>
|
|
<link rel="stylesheet" media="screen" href ="/static/css/bootstrap.min.css">
|
|
<link rel="stylesheet" href="/static/css/bootstrap-theme.min.css">
|
|
<meta name="viewport" content = "width=device-width, initial-scale=1.0">
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
|
<script src="/static/js/bootstrap.min.js"></script>
|
|
</head>
|
|
|
|
<style>
|
|
tbody td {
|
|
border: 1px solid #ccc;
|
|
padding: 0px 0px;
|
|
}
|
|
|
|
th.rotate {
|
|
/* Something you can count on */
|
|
height: 120px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
th.rotate > div {
|
|
transform:
|
|
/* Magic Numbers */
|
|
translate(23px, 0px)
|
|
/* 45 is really 360 - 45 */
|
|
rotate(315deg);
|
|
width: 30px;
|
|
}
|
|
th.rotate > div > span {
|
|
border-bottom: 1px solid #ccc;
|
|
padding: 0px 0px;
|
|
}
|
|
</style>
|
|
|
|
<body>
|
|
<p>
|
|
{% with messages = get_flashed_messages() %}
|
|
{% if messages %}
|
|
<ul class=flashes>
|
|
{% for message in messages %}
|
|
<li>{{ message }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
{% endwith %}
|
|
</p>
|
|
<table class="table table-striped table-hover table-condensed">
|
|
<thead>
|
|
{%- for column in columns %}
|
|
{% if column['Field'] == "playerNumber" %}
|
|
<th><div><span>Player Number</span></div></th>
|
|
{% elif column['Field'] == "playerName" %}
|
|
<th><div><span>Player Name</span></div></th>
|
|
{% elif column['Field'] == "appearances" %}
|
|
<th><div><span>Appearances</span></div></th>
|
|
{% elif column['Field'] == "goals" %}
|
|
<th><div><span>Goals</span></div></th>
|
|
{% elif column['Field'].startswith('22381goal') %}
|
|
<th class="rotate"><div><span>NBC A goals</span></div></th>
|
|
{% else %}
|
|
{%- for match in matchesList %}
|
|
{% if column['Field'].startswith(match) %}
|
|
{% if column['Field'].endswith('played') %}
|
|
<th class="rotate"><div><span>{{ matches[match] }} Played</span></div></th>
|
|
{% elif column['Field'].endswith('goals') %}
|
|
<th class="rotate"><div><span>{{ matches[match] }} Goals</span></div></th>
|
|
{% elif column['Field'].endswith('capt') %}
|
|
<th class="rotate"><div><span>{{ matches[match] }} Captain</span></div></th>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
{%- endfor %}
|
|
</thead>
|
|
|
|
<tbody>
|
|
{%- for row in rows %}
|
|
<tr>
|
|
{%- for column in columns %}
|
|
<td>{{ row[column['Field']] }}</td>
|
|
{%- endfor %}
|
|
</tr>
|
|
{%- endfor %}
|
|
</tbody>
|
|
</table>
|
|
<a class="btn btn-primary" href="/dashboard" role="button">Home</a>
|
|
</body>
|
|
|