c220e54bb8
This merge request has full JS routing for calling specific endpoints. Game is fully playable but doesn't have polling yet. This version already has the UI changes adressed in MR #43 so first merge MR #43 and then this one or only merge this one because it already has the UI changes :) Co-authored-by: LQ63 <lkhermann@web.de> Reviewed-on: #50 Reviewed-by: Janis <janis-e@gmx.de>
32 lines
1.3 KiB
HTML
32 lines
1.3 KiB
HTML
@(user: Option[model.users.User])
|
|
|
|
@main("Create Game") {
|
|
@navbar(user)
|
|
<main class="lobby-background flex-grow-1">
|
|
<div class="w-50 mx-auto">
|
|
<div class="mt-3">
|
|
<label for="lobbyname" class="form-label">Lobby-Name</label>
|
|
<input type="text" class="form-control" id="lobbyname" name="lobbyname" placeholder="Lobby 1" required>
|
|
</div>
|
|
<div class="form-check form-switch mt-3">
|
|
<input class="form-check-input" type="checkbox" id="visibilityswitch" disabled>
|
|
<label class="form-check-label" for="visibilityswitch">public/private</label>
|
|
</div>
|
|
<div class="mt-3">
|
|
<label for="playeramount" class="form-label">Playeramount:</label>
|
|
<input type="range" class="form-range text-body" min="2" max="7" value="2" id="playeramount" name="playeramount">
|
|
<div class="d-flex justify-content-between">
|
|
<span>2</span>
|
|
<span>3</span>
|
|
<span>4</span>
|
|
<span>5</span>
|
|
<span>6</span>
|
|
<span>7</span>
|
|
</div>
|
|
</div>
|
|
<div class="mt-3 text-center">
|
|
<div class="btn btn-success" onclick="createGameJS()">Create Game</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
} |