Create basic environment for flask-based output
This commit is contained in:
56
src/solo_turnier/templates/index.html
Normal file
56
src/solo_turnier/templates/index.html
Normal file
@@ -0,0 +1,56 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Solo Turnier Auswertung</title>
|
||||
{# <meta name="description" content="Webpage for xxxx"> #}
|
||||
<!-- http://meyerweb.com/eric/tools/css/reset/ -->
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
||||
</head>
|
||||
<body>
|
||||
{# <h1>Finalauswertung Solo-Turniere</h1> #}
|
||||
{% for group in data.groups %}
|
||||
{% block groupBlk scoped %}
|
||||
<div class="section">
|
||||
<h1>Auswertung Gruppe {{ group.name }}</h1>
|
||||
<table class="tab-summary">
|
||||
<tr>
|
||||
<th>Teilnehmer</th>
|
||||
{% for dance in data.results[group].dances %}
|
||||
<th>{{ dance }}</th>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
{% set activeGroup = data.results[group].results %}
|
||||
{% for participant, results in activeGroup|dictsort() %}
|
||||
{% block participantGrp scoped %}
|
||||
{% set rowCls = "" %}
|
||||
{% if not participant.finalist %}
|
||||
{% set rowCls = "no-finalist" %}
|
||||
{% endif %}
|
||||
<tr class="{{ rowCls }}">
|
||||
<td>{{ participant.name }} ({{ participant.id }})</td>
|
||||
{% for dance in data.results[group].dances %}
|
||||
{% block danceResult scoped %}
|
||||
{% set res = activeGroup[participant][loop.index0] %}
|
||||
<td>
|
||||
{% if res is not none %}
|
||||
{% if not participant.finalist %}
|
||||
Kein/e Finalist/in
|
||||
{% endif %}
|
||||
{{ res.getNativePlace() }} ({{ res.nativeClass }}) <br />
|
||||
<span class="competition-place">
|
||||
{{ res.getPlace() }} in {{ res.competitionClass }}
|
||||
</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
{% endblock %}
|
||||
{% endfor %}
|
||||
</tr>
|
||||
{% endblock %}
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% endfor %}
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user