Burathar
4 years ago
2 changed files with 38 additions and 6 deletions
@ -1,5 +1,34 @@ |
|||||||
{% extends 'base.html' %} |
{% extends 'base.html' %} |
||||||
|
|
||||||
{% block app_content %} |
{% block app_content %} |
||||||
<h1>Dashboard</h1> |
<h1>{{ game.name }}Dashboard</h1> |
||||||
|
|
||||||
|
<h2>Players:</h2> |
||||||
|
<div class="table-responsive"> |
||||||
|
<table class="table"> |
||||||
|
<thead> |
||||||
|
<tr> |
||||||
|
<th scope="col">Player Name</th> |
||||||
|
<th scope="col">Role</th> |
||||||
|
<th scope="col">Objectives found</th> |
||||||
|
<th scope="col">Bunnies Caught</th> |
||||||
|
<th scope="col">Last location</th> |
||||||
|
</tr> |
||||||
|
</thead> |
||||||
|
<tbody> |
||||||
|
{% for player in game.players %} |
||||||
|
<tr> |
||||||
|
<td><a href="{{ url_for(f'player/{player.name}') }}">{{ player.name }}</a></td> |
||||||
|
<td>{{ [gameplayer for gameplayer in p.player_games if gameplayer.game == g2][0].role }}</td> |
||||||
|
<td>{{ "Placeholder" }}</td> |
||||||
|
<td>{{ "Placeholder" }}</td> |
||||||
|
<td> Placeholder <td> |
||||||
|
</tr> |
||||||
|
{% endfor %} |
||||||
|
</tbody> |
||||||
|
</table> |
||||||
|
</div> |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{% endblock %} |
{% endblock %} |
Loading…
Reference in new issue