feat: Adds route query parameter to home, htmx updates url, and working next parameter for login

This commit is contained in:
2025-01-07 20:39:12 -05:00
parent 6eb723a7cf
commit e86e5facc6
5 changed files with 61 additions and 30 deletions

View File

@@ -1,3 +1,5 @@
#extend("index"):
#export("content"):
<div id="content">
<header>
<div class="container">
@@ -5,7 +7,11 @@
</div>
</header>
<form class="login-form" hx-post="/login" hx-target="#content" hx-swap="outerHTML">
<form class="login-form"
hx-post="#(route)"
hx-target="body"
hx-push-url="true"
>
<label for="username">Username</label>
<input type="text" id="username" placeholder="Username" name="username" autocomplete="username" required autofocus>
<br>
@@ -15,3 +21,5 @@
<input type="submit" value="Sign In">
</form>
</div>
#endexport
#endextend