Add data models
This commit is contained in:
41
web/templates/bosses.html
Normal file
41
web/templates/bosses.html
Normal file
@@ -0,0 +1,41 @@
|
||||
{{template "layout" .}}
|
||||
|
||||
{{define "title"}}Bosses · Estus Shots{{end}}
|
||||
|
||||
{{define "content"}}
|
||||
<fieldset class="tui-fieldset" style="padding: 2rem;">
|
||||
<legend>Bosses Management</legend>
|
||||
<p class="tui-text-white">
|
||||
Manage bosses from Dark Souls games.
|
||||
</p>
|
||||
|
||||
<section style="margin-top: 1.5rem;">
|
||||
<h2 class="tui-text-green">Boss List</h2>
|
||||
<div
|
||||
id="boss-list"
|
||||
hx-get="/bosses/list"
|
||||
hx-trigger="load"
|
||||
hx-swap="innerHTML"
|
||||
>
|
||||
<div class="tui-panel">Loading bosses...</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section style="margin-top: 1.5rem;">
|
||||
<h2 class="tui-text-green">Add New Boss</h2>
|
||||
<form hx-post="/bosses" hx-target="#boss-list" hx-swap="innerHTML">
|
||||
<div class="tui-fieldset">
|
||||
<label for="boss-name">Boss Name:</label>
|
||||
<input type="text" id="boss-name" name="name" required class="tui-input" />
|
||||
|
||||
<label for="boss-game" style="margin-top: 1rem;">Game:</label>
|
||||
<select id="boss-game" name="game_id" required class="tui-input">
|
||||
<option value="">Select a game...</option>
|
||||
</select>
|
||||
|
||||
<button type="submit" class="tui-button" style="margin-top: 1rem;">Add Boss</button>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
</fieldset>
|
||||
{{end}}
|
||||
46
web/templates/drinks.html
Normal file
46
web/templates/drinks.html
Normal file
@@ -0,0 +1,46 @@
|
||||
{{template "layout" .}}
|
||||
|
||||
{{define "title"}}Drinks · Estus Shots{{end}}
|
||||
|
||||
{{define "content"}}
|
||||
<fieldset class="tui-fieldset" style="padding: 2rem;">
|
||||
<legend>Drinks Management</legend>
|
||||
<p class="tui-text-white">
|
||||
Manage the types of drinks consumed during the game.
|
||||
</p>
|
||||
|
||||
<section style="margin-top: 1.5rem;">
|
||||
<h2 class="tui-text-green">Drink List</h2>
|
||||
<div
|
||||
id="drink-list"
|
||||
hx-get="/drinks/list"
|
||||
hx-trigger="load"
|
||||
hx-swap="innerHTML"
|
||||
>
|
||||
<div class="tui-panel">Loading drinks...</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section style="margin-top: 1.5rem;">
|
||||
<h2 class="tui-text-green">Add New Drink</h2>
|
||||
<form hx-post="/drinks" hx-target="#drink-list" hx-swap="innerHTML">
|
||||
<div class="tui-fieldset">
|
||||
<label for="drink-name">Drink Name:</label>
|
||||
<input type="text" id="drink-name" name="name" required class="tui-input" />
|
||||
|
||||
<label for="drink-type" style="margin-top: 1rem;">Type:</label>
|
||||
<select id="drink-type" name="type" required class="tui-input">
|
||||
<option value="">Select type...</option>
|
||||
<option value="beer">Beer</option>
|
||||
<option value="shot">Shot</option>
|
||||
<option value="cocktail">Cocktail</option>
|
||||
<option value="wine">Wine</option>
|
||||
<option value="other">Other</option>
|
||||
</select>
|
||||
|
||||
<button type="submit" class="tui-button" style="margin-top: 1rem;">Add Drink</button>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
</fieldset>
|
||||
{{end}}
|
||||
35
web/templates/games.html
Normal file
35
web/templates/games.html
Normal file
@@ -0,0 +1,35 @@
|
||||
{{template "layout" .}}
|
||||
|
||||
{{define "title"}}Games · Estus Shots{{end}}
|
||||
|
||||
{{define "content"}}
|
||||
<fieldset class="tui-fieldset" style="padding: 2rem;">
|
||||
<legend>Games Management</legend>
|
||||
<p class="tui-text-white">
|
||||
Manage Dark Souls game variants tracked by the system.
|
||||
</p>
|
||||
|
||||
<section style="margin-top: 1.5rem;">
|
||||
<h2 class="tui-text-green">Game List</h2>
|
||||
<div
|
||||
id="game-list"
|
||||
hx-get="/games/list"
|
||||
hx-trigger="load"
|
||||
hx-swap="innerHTML"
|
||||
>
|
||||
<div class="tui-panel">Loading games...</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section style="margin-top: 1.5rem;">
|
||||
<h2 class="tui-text-green">Add New Game</h2>
|
||||
<form hx-post="/games" hx-target="#game-list" hx-swap="innerHTML">
|
||||
<div class="tui-fieldset">
|
||||
<label for="game-name">Game Name:</label>
|
||||
<input type="text" id="game-name" name="name" required class="tui-input" />
|
||||
<button type="submit" class="tui-button" style="margin-top: 1rem;">Add Game</button>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
</fieldset>
|
||||
{{end}}
|
||||
35
web/templates/players.html
Normal file
35
web/templates/players.html
Normal file
@@ -0,0 +1,35 @@
|
||||
{{template "layout" .}}
|
||||
|
||||
{{define "title"}}Players · Estus Shots{{end}}
|
||||
|
||||
{{define "content"}}
|
||||
<fieldset class="tui-fieldset" style="padding: 2rem;">
|
||||
<legend>Players Management</legend>
|
||||
<p class="tui-text-white">
|
||||
Manage players who participate in the drinking game.
|
||||
</p>
|
||||
|
||||
<section style="margin-top: 1.5rem;">
|
||||
<h2 class="tui-text-green">Player List</h2>
|
||||
<div
|
||||
id="player-list"
|
||||
hx-get="/players/list"
|
||||
hx-trigger="load"
|
||||
hx-swap="innerHTML"
|
||||
>
|
||||
<div class="tui-panel">Loading players...</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section style="margin-top: 1.5rem;">
|
||||
<h2 class="tui-text-green">Add New Player</h2>
|
||||
<form hx-post="/players" hx-target="#player-list" hx-swap="innerHTML">
|
||||
<div class="tui-fieldset">
|
||||
<label for="player-name">Name:</label>
|
||||
<input type="text" id="player-name" name="name" required class="tui-input" />
|
||||
<button type="submit" class="tui-button" style="margin-top: 1rem;">Add Player</button>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
</fieldset>
|
||||
{{end}}
|
||||
50
web/templates/sessions.html
Normal file
50
web/templates/sessions.html
Normal file
@@ -0,0 +1,50 @@
|
||||
{{template "layout" .}}
|
||||
|
||||
{{define "title"}}Sessions · Estus Shots{{end}}
|
||||
|
||||
{{define "content"}}
|
||||
<fieldset class="tui-fieldset" style="padding: 2rem;">
|
||||
<legend>Sessions Management</legend>
|
||||
<p class="tui-text-white">
|
||||
View and manage game sessions.
|
||||
</p>
|
||||
|
||||
<section style="margin-top: 1.5rem;">
|
||||
<h2 class="tui-text-green">Active Sessions</h2>
|
||||
<div
|
||||
id="active-sessions"
|
||||
hx-get="/sessions/active"
|
||||
hx-trigger="load"
|
||||
hx-swap="innerHTML"
|
||||
>
|
||||
<div class="tui-panel">Loading active sessions...</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section style="margin-top: 1.5rem;">
|
||||
<h2 class="tui-text-green">Session History</h2>
|
||||
<div
|
||||
id="session-history"
|
||||
hx-get="/sessions/history"
|
||||
hx-trigger="load"
|
||||
hx-swap="innerHTML"
|
||||
>
|
||||
<div class="tui-panel">Loading session history...</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section style="margin-top: 1.5rem;">
|
||||
<h2 class="tui-text-green">Start New Session</h2>
|
||||
<form hx-post="/sessions" hx-target="#active-sessions" hx-swap="innerHTML">
|
||||
<div class="tui-fieldset">
|
||||
<label for="session-game">Game:</label>
|
||||
<select id="session-game" name="game_id" required class="tui-input">
|
||||
<option value="">Select a game...</option>
|
||||
</select>
|
||||
|
||||
<button type="submit" class="tui-button" style="margin-top: 1rem;">Start Session</button>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
</fieldset>
|
||||
{{end}}
|
||||
48
web/templates/statistics.html
Normal file
48
web/templates/statistics.html
Normal file
@@ -0,0 +1,48 @@
|
||||
{{template "layout" .}}
|
||||
|
||||
{{define "title"}}Statistics · Estus Shots{{end}}
|
||||
|
||||
{{define "content"}}
|
||||
<fieldset class="tui-fieldset" style="padding: 2rem;">
|
||||
<legend>Statistics</legend>
|
||||
<p class="tui-text-white">
|
||||
View statistics for players, games, and bosses.
|
||||
</p>
|
||||
|
||||
<section style="margin-top: 1.5rem;">
|
||||
<h2 class="tui-text-green">Player Statistics</h2>
|
||||
<div
|
||||
id="player-stats"
|
||||
hx-get="/statistics/players"
|
||||
hx-trigger="load"
|
||||
hx-swap="innerHTML"
|
||||
>
|
||||
<div class="tui-panel">Loading player statistics...</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section style="margin-top: 1.5rem;">
|
||||
<h2 class="tui-text-green">Boss Statistics</h2>
|
||||
<div
|
||||
id="boss-stats"
|
||||
hx-get="/statistics/bosses"
|
||||
hx-trigger="load"
|
||||
hx-swap="innerHTML"
|
||||
>
|
||||
<div class="tui-panel">Loading boss statistics...</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section style="margin-top: 1.5rem;">
|
||||
<h2 class="tui-text-green">Game Statistics</h2>
|
||||
<div
|
||||
id="game-stats"
|
||||
hx-get="/statistics/games"
|
||||
hx-trigger="load"
|
||||
hx-swap="innerHTML"
|
||||
>
|
||||
<div class="tui-panel">Loading game statistics...</div>
|
||||
</div>
|
||||
</section>
|
||||
</fieldset>
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user