Belote/templates/admin_games.html

28 lines
1.2 KiB
HTML
Raw Permalink Normal View History

2020-04-25 10:08:19 +00:00
{% extends "base.html" %}
{% block title %} Administration {% endblock %}
{% block titre %}Administration : jeux {% endblock %}
{% block contenu %}
<div id="zone-de-contenu">
2020-04-26 18:10:43 +00:00
<fieldset class="fieldset" ><legend style="font-size:25px;">Ajouter un jeu</legend>
2020-04-25 10:08:19 +00:00
<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 %}
2020-04-27 18:13:26 +00:00
<tr><td>{{ g.id }}</td><td>{{ g.name }}</td><td>{{ g.partie }}</td><td>{% for p in g.players %}{{ p.user }} {% endfor %}</td>
2020-04-25 10:08:19 +00:00
<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 %}