Belote/templates/admin_games.html
2020-04-25 12:08:19 +02:00

28 lines
1.2 KiB
HTML

{% extends "base.html" %}
{% block title %} Administration {% endblock %}
{% block titre %}Administration : jeux {% endblock %}
{% block contenu %}
<div id="zone-de-contenu">
<fieldset class="fieldset" ><legend style="font-size:25px;">Ajouter un utilisateur</legend>
<button id="add" onclick="javascript:go('/admin/games/new')">
<img src="/static/plus.png" style="float:left;" alt=''/><div style="float:right; margin:5px;">Nouveau jeu</div>
</button>
</fieldset>
<fieldset class="fieldset"><legend style="font-size:25px;">Liste des jeux</legend>
<table width=100%>
<thead>
<tr><td>Id</td><td>Name</td><td>Partie</td><td>Joueurs</td><td>Status</td><td>Actions</td></tr>
</thead>
{% for g in games %}
<tr><td>{{ g.id }}</td><td><a href="/game/{{g.id}}">{{ g.name }}</a></td><td>{{ g.partie }}</td><td>{% for p in g.players %}{{ p.user }} {% endfor %}</td>
<td>{% if g.start %} Started {% elif g.fixplayers %}Players set{% else %}Join{% endif %}</td>
<td><a href="/game/{{g.id}}/see">Voir</a>&nbsp;<a href="/admin/games/{{ g.id }}/del"><img src="/static/croix.png" alt="Del" /></a></td></tr>
{% endfor %}
</table>
</fieldset>
</div>
{% endblock %}