gcp-hockey-results/templates/_convenorPlayerAdd.html
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

159 lines
6.2 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<html>
<head>
<title>HKFC Men's Convenor - Player Add form *TESTING*</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>
<h2>HKFC Men's Convenor Add Player Record Form</h2>
{% with messages = get_flashed_messages() %}
{% if messages %}
{% for message in messages %}
<div class="alert alert-warning alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
{{ message }}
</div>
{% endfor %}
{% endif %}
{% endwith %}
<body onload="myFunction()">
<dl>
<p>
{{ form.csrf_token }}
<div class="row">
<div class="col-xs-12">
<form class="col-sm-6" method="post" action="/convenor/playerAddResult" accept-charset="utf-8">
<legend>Add Player Form</legend>
<div class = "row">
<div class = "col-sm-4">
<div class="input-group">
<span class="input-group-addon" id="basic-addon1">{{ form.playerClub.label }}</span>
{{ form.playerClub(class_="form-control") }}
</div>
</div>
<div class = "col-sm-2">
<div class="input-group">
<span class="input-group-addon" id="basic-addon1">{{ form.playerTeam.label }}</span>
{{ form.playerTeam(class_="form-control") }}
</div>
</div>
<div class = "col-sm-3">
<div class="input-group">
<span class="input-group-addon" id="basic-addon1">{{ form.playerNumber.label }}</span>
{{ form.playerNumber(class_="form-control") }}
</div>
</div>
</div>
<p/>
<div class = "row">
<div class = "col-sm-9">
<div class="input-group">
<span class="input-group-addon" id="basic-addon1">{{ form.playerForenames.label }}</span>
{{ form.playerForenames(class_="form-control") }}
</div>
</div>
</div>
<div class = "row">
<div class="col-sm-9">
<div class="input-group">
<span class="input-group-addon" id="basic-addon1">{{ form.playerSurnames.label }}</span>
{{ form.playerSurnames(class_="form-control") }}
</div>
</div>
</div>
<div class = "row">
<div class="col-sm-9">
<div class="input-group">
<span class="input-group-addon" id="basic-addon1">{{ form.playerNickname.label }}</span>
{{ form.playerNickname(class_="form-control") }}
</div>
</div>
</div>
<div class = "row">
<div class="col-sm-9">
<div class="input-group">
<span class="input-group-addon" id="basic-addon1">{{ form.playerChineseName.label }}</span>
{{ form.playerChineseName(class_="form-control") }}
</div>
</div>
</div>
<p/>
<div class = "row">
<div class = "col-sm-5">
<div class="input-group">
<span class="input-group-addon" id="basic-addon1">{{ form.playerEmailAddress.label }}</span>
{{ form.playerEmailAddress(class_="form-control") }}
</div>
</div>
<div class = "col-sm-4">
<div class="input-group">
<span class="input-group-addon" id="basic-addon1">{{ form.playerTelNumber.label }}</span>
{{ form.playerTelNumber(class_="form-control") }}
</div>
</div>
</div>
<div class = "row">
<div class = "col-sm-5">
<div class="input-group">
<span class="input-group-addon" id="basic-addon1">{{ form.playerDob.label }}</span>
{{ form.playerDob(class_="form-control") }}
</div>
</div>
<div class = "col-sm-4">
<div class="input-group">
<span class="input-group-addon" id="basic-addon1">{{ form.playerHkid.label }}</span>
{{ form.playerHkid(class_="form-control") }}
</div>
</div>
</div>
<br>
{{ form.submit(class_="btn btn-success") }}
<a class="btn btn-danger" href="/dashboard" role="button">Cancel</a>
</form>
<div class="col-sm-6">
<img src="{{ clubLogo }}" height="90" id="clubLogo"/>
</div>
</div>
</div>
</p>
</dl>
</body>
<script>
var club_select = document.getElementById("playerClub");
var club_logo = document.getElementById("clubLogo");
var team_select = document.getElementById("playerTeam");
club_select.onchange = function() {myFunction()};
function myFunction() {
club = club_select.value;
fetch('/hkfc-d/motmAdmin/' + club).then(function(response) {
response.json().then(function(data) {
var optionHTML = '';
for (var team of data) {
optionHTML += '<option value="' + team.team + '">' + team.team + '</option>';
}
team_select.innerHTML = optionHTML;
})
});
fetch('/hkfc-d/getLogo/' + club).then(function(response) {
response.json().then(function(data) {
var HTML = '';
for (var logo of data) {
HTML += logo.logoURL;
}
club_logo.src = HTML;
})
});
}
</script>
</html>