diff options
| author | Karan Jayachandra <karan.jayachandra@nxp.com> | 2024-10-16 16:20:13 +0200 |
|---|---|---|
| committer | Karan Jayachandra <karan.jayachandra@nxp.com> | 2024-10-16 16:20:13 +0200 |
| commit | b581661c993095c43ad19540999ab21957d0e013 (patch) | |
| tree | 3a8259e7d4b224142752975d5f95b40313a71378 /templates/index.j2 | |
| parent | 0a4dac8168d726707a46b9aa60a257ecaba6a620 (diff) | |
Added guests funtionality
Diffstat (limited to 'templates/index.j2')
| -rw-r--r-- | templates/index.j2 | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/templates/index.j2 b/templates/index.j2 index 40d0eb1..42fc43e 100644 --- a/templates/index.j2 +++ b/templates/index.j2 @@ -29,7 +29,18 @@ <p class="title">Games</p> <div class="columns"> <div class="column"> - <div class="select is-large"> + <div class="field has-addons"> + <div class="control"> + <button class="button is-large is-responsive is-dark" style="text-align:center" hx-post="/decrement" hx-swap="outerHTML" hx-trigger="click" hx-target="#guests">-</button> + </div> + <div hx-get="/guests" hx-swap="outerHTML" hx-trigger="revealed"></div> + <div class="control"> + <button class="button is-large is-responsive is-dark" style="text-align:center" hx-post="/increment" hx-swap="outerHTML" hx-trigger="click" hx-target="#guests">+</button> + </div> + </div> + </div> + <div class="column"> + <div class="select is-large is-responsive"> <select name="type"> <option>10 Levels</option> <option>8 Levels</option> @@ -41,14 +52,14 @@ </div> </div> <div class="column"> - <button class="button is-dark is-large" hx-post="/propose" hx-trigger="click" hx-target="#games" hx-include="[name='type']">Propose</button> + <button class="button is-dark is-large is-responsive" hx-post="/propose" hx-trigger="click" hx-target="#games" hx-include="[name='type']">Propose</button> </div> <div class="column"></div> <div class="column"> - <button class="button is-dark is-large" hx-post="/confirm" hx-trigger="click" hx-target="#games">Confirm</button> + <button class="button is-dark is-large is-responsive" hx-post="/confirm" hx-trigger="click" hx-target="#games">Confirm</button> </div> <div class="column"> - <button class="button is-dark is-large" hx-post="/clear" hx-trigger="click" hx-target="#games">Clear</button> + <button class="button is-dark is-large is-responsive" hx-post="/clear" hx-trigger="click" hx-target="#games">Clear</button> </div> </div> <div hx-post="/clear" hx-swap="outerHTML" hx-trigger="revealed"></div> |
