Files
lewangoalski/FlaskWebProject/FlaskWebProject/templates/matches.html

55 lines
1.9 KiB
HTML

{% extends 'base.html' %}
{% block title %}Lista meczów{% endblock %}
{% block content %}
<select onchange="location = this.value;">
<option disabled selected>Wybierz rok</option>
<option value="{{ url_for('mecze', date='2025') }}">2025</option>
<option value="{{ url_for('mecze', date='2024') }}">2024</option>
<option value="{{ url_for('mecze', date='2023') }}">2023</option>
<option value="{{ url_for('mecze', date='2022') }}">2022</option>
<option value="{{ url_for('mecze', date='2021') }}">2021</option>
<option value="{{ url_for('mecze', date='2020') }}">2020</option>
<option value="{{ url_for('mecze', date='2019') }}">2019</option>
<option value="{{ url_for('mecze', date='2018') }}">2018</option>
<option value="{{ url_for('mecze', date='2017') }}">2017</option>
<option value="{{ url_for('mecze', date='2016') }}">2016</option>
<option value="{{ url_for('mecze', date='2015') }}">2015</option>
<option value="{{ url_for('mecze', date='2014') }}">2014</option>
</select>
<section class="section__matches">
<h2>📅 Mecze Roberta</h2>
<table>
<tr>
<th>Data</th>
<!--
<th>Przeciwnik</th>
<th>Gole</th>
<th>Asysty</th>
<th>Minuty</th>
-->
<th>Gospodarze</th>
<th>Wynik</th>
<th>Goście</th>
<th></th>
</tr>
{% for match in matches %}
<tr>
<td>{{ match.data }}</td>
<td>{{ match.gospodarze_pelna_nazwa }}</td>
<td>{{ match.gosp_wynik }} : {{ match.gosc_wynik }}</td>
<td>{{ match.goscie_pelna_nazwa }}</td>
<!--
<td>{{ match.goals }}</td>
<td>{{ match.assists }}</td>
<td>{{ match.minutes }}</td>
-->
</tr>
{% endfor %}
</table>
</section>
{% endblock %}