startup page seting

This commit is contained in:
2025-01-13 15:36:39 +02:00
commit d9e40f0d73
7 changed files with 239 additions and 0 deletions

33
templates/dashboard.html Normal file
View File

@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<title>Dashboard</title>
</head>
<body>
<h1>Dashboard</h1>
<h2>Players</h2>
<ul>
{% for player in players %}
<li>
{{ player.username }} ({{ player.ip }})
<a href="{{ url_for('player_page', player_id=player.id) }}">View Schedule</a>
</li>
{% endfor %}
</ul>
<a href="{{ url_for('add_player') }}">Add Player</a>
<h2>Groups</h2>
<ul>
{% for group_name, group in groups.items() %}
<li>
{{ group_name }} ({{ group.players | length }} players)
</li>
{% endfor %}
</ul>
<a href="{{ url_for('add_group') }}">Add Group</a>
<h2>Content Upload</h2>
<a href="{{ url_for('upload_content') }}">Upload Content</a>
</body>
</html>