Added new website

This commit is contained in:
didier.amyot committed 2024-07-02 18:36:05 -04:00
1 parent 293b7727e2
commit df26a3fe96
34 files changed
+10488

No files matched your search

+37
View File
@@ -0,0 +1,37 @@
{{set isToday = !!isToday }}
<div class="uk-width-large-2-3 uk-container-center uk-margin">
<div class="uk-margin" style="margin-top: 1em">
<ul class="uk-tab">
<li {{if isToday}} class="uk-active" {{ /if}}>
<a hx-get="/membre/games-editor/today"
hx-target="#content">
Aujourd'hui
</a>
</li>
{{ for year of years }}
<li {{if year === selectedYear}} class="uk-active" {{ /if}}>
<a hx-get="/membre/games-editor/{{year}}"
hx-target="#content">
Saison {{year}}
</a>
</li>
{{ /for }}
</ul>
</div>
{{ for game of games }}
<div class="uk-panel uk-panel-box uk-panel-box-secondary uk-margin">
{{ include "templates/includes/game-editor.vto" {game} }}
</div>
{{ /for }}
<hr>
<button class="uk-button"
hx-get="/member/new-game-editor"
hx-target="#content">
Nouvelle Partie
</button>
</div>
+7
View File
@@ -0,0 +1,7 @@
<div class="uk-width-large-2-3 uk-container-center uk-margin">
<div class="uk-panel uk-panel-box uk-panel-box-secondary uk-margin">
<pre>{{ error }}</pre>
</div>
</div>
+45
View File
@@ -0,0 +1,45 @@
<div class="uk-width-large-2-3 uk-container-center uk-margin">
<div class="uk-margin"></div>
<div class="uk-panel uk-panel-box uk-panel-box-secondary uk-margin">
<form hx-post="/membre/new-game"
hx-target="#created-game"
hx-swap="afterbegin">
<div class="uk-form-row" style="text-align: center; font-size: 2em;">
{{ include "templates/includes/team-selector.vto" {name: "away-team"} }}
<label>
Vs.
</label>
{{ include "templates/includes/team-selector.vto" {name: "home-team"}}}
</div>
<div class="uk-form-row">
<label>
Date: <input type=date name="game-date" required>
</label>
</div>
<div class="uk-form-row">
<label>
Heure: <input type="time" name="game-time">
</label>
</div>
<br>
<div style="text-align: right;">
<button class="uk-button">Creer</button>
</div>
<form>
</div>
<div id="created-game"></div>
</div>
@@ -0,0 +1,7 @@
<div class="uk-width-large-2-3 uk-container-center uk-margin">
<div class="uk-panel uk-panel-box uk-panel-box-secondary uk-margin">
{{ include "templates/includes/game-editor.vto" {game} }}
</div>
</div>