Verification done

This commit is contained in:
Frank
2026-01-07 20:06:28 +01:00
parent c6adb00219
commit de4b7bca6a
7 changed files with 726 additions and 8 deletions

View File

@@ -24,6 +24,12 @@
<p>No games available to start.</p>
{% endif %}
<h2>Join Session</h2>
<form method="post">
<input type="text" name="invite_code" placeholder="Enter Invite Code" required>
<button type="submit" name="join_session">Join Session</button>
</form>
<h2>Your Sessions</h2>
{% if sessions is not empty %}
<table>
@@ -63,6 +69,12 @@
</td>
<td>
<a href="{{ path('game', {session: session.id}) }}">Enter Game</a>
{% if session.status.value == 'created' and session.timer == 0 %}
<form method="post" style="display:inline;">
<input type="hidden" name="session_id" value="{{ session.id }}">
<button type="submit" name="leave_session" onclick="return confirm('Are you sure you want to leave this session?')">Leave Session</button>
</form>
{% endif %}
</td>
</tr>
{% endfor %}