api_lol/appli/templates/index.html

40 lines
1.1 KiB
HTML

{% extends "base.html" %}
{% block content %}
<form method="POST">
{{ form.hidden_tag() }}
<div>
{{ form.region.label }}<br>
{{ form.region() }}
</div>
<div>
{{ form.player_count.label }}<br>
{{ form.player_count() }}
</div>
<br>
{{ form.submit() }}
</form>
{% if players %}
<h2>classement :</h2>
<table>
<thead>
<tr>
<th>Rang</th>
<th>Pseudo</th>
<th>Tag</th>
<th>Points</th>
</tr>
</thead>
<tbody>
{% for player in players %}
<tr>
<td>{{ player.rank }}</td>
<td>{{ player.name }}</td>
<td>#{{ player.tag }}</td>
<td>{{ player.league_points }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% endblock %}