<commit_before>{% extends 'admin/master.html' %}
{% block head %}
{{ super() }}
<style>
.btn {
	min-width: 10em;
	min-height: 3em;
}
.fakebtn {
	padding: 1em;
}
</style>
{% endblock %}
{% block body %}
	{% if refresh %}
		<script>
		window.location = "/admin";
		</script>
	{% else %}
		<p>
		<form method="POST">
		{% if logged_in %}
			<input class="btn btn-danger" type="submit" value="Logout">
		{% else %}
			Admin Passwort: <input name="pw" type="password" value="">
		{% endif %}
		</form>
		
		{% if logged_in %}
			<hr>
			<form method="POST">
				<h4>Enter a match for the match database:</h4>
				Select the phase:
					<select name="bof_round">
						<option value="-1" selected>Please select...</option>
						<option value="16">Group Phase</option>
						<option value="8">Best of 16</option>
						<option value="4">Quarter Finals</option>
						<option value="2">Semi Finals</option>
						<option value="1">Finals and Third place</option>
					</select> 
				<br>
				Please enter the country code of the participating teams and the result (goals):<br>
				Teams: <input type="text" name="team_left" value="" maxlength="2"> vs. <input type="text" name="team_right" value="" maxlength="2">
				<br>
				Result: <input type="number" name="goals_left" value="" maxlength="2"> : <input type="number" name="goals_right" value="" maxlength="2">
				<br>
				<button class="btn btn-primary" type="submit" value="1">Save Result</button>
				{% if result_entered %}
				<span class="fakebtn btn-warning">{{ result_entered }}</span><commit_msg>admin interface: allow country codes of max. length 4 (up from 2)<commit_after>{% extends 'admin/master.html' %}
{% block head %}
{{ super() }}
<style>
.btn {
	min-width: 10em;
	min-height: 3em;
}
.fakebtn {
	padding: 1em;
}
</style>
{% endblock %}
{% block body %}
	{% if refresh %}
		<script>
		window.location = "/admin";
		</script>
	{% else %}
		<p>
		<form method="POST">
		{% if logged_in %}
			<input class="btn btn-danger" type="submit" value="Logout">
		{% else %}
			Admin Passwort: <input name="pw" type="password" value="">
		{% endif %}
		</form>
		
		{% if logged_in %}
			<hr>
			<form method="POST">
				<h4>Enter a match for the match database:</h4>
				Select the phase:
					<select name="bof_round">
						<option value="-1" selected>Please select...</option>
						<option value="16">Group Phase</option>
						<option value="8">Best of 16</option>
						<option value="4">Quarter Finals</option>
						<option value="2">Semi Finals</option>
						<option value="1">Finals and Third place</option>
					</select> 
				<br>
				Please enter the country code of the participating teams and the result (goals):<br>
				Teams: <input type="text" name="team_left" value="" maxlength="4"> vs. <input type="text" name="team_right" value="" maxlength="4">
				<br>
				Result: <input type="number" name="goals_left" value="" maxlength="2"> : <input type="number" name="goals_right" value="" maxlength="2">
				<br>
				<button class="btn btn-primary" type="submit" value="1">Save Result</button>
				{% if result_entered %}
				<span class="fakebtn btn-warning">{{ result_entered }}</span>
{'fraction_non_alphanumeric': 0.1876981610653139, 'fraction_numerical': 0.013316423589093214, 'mean_word_length': 3.7586726998491704, 'pattern_counts': {'":': 0, '<': 81, '<?xml version=': 0, '>': 81, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1661302', 'n_tokens_mistral': 1297, 'n_tokens_neox': 1041, 'n_words': 284}