feat: Adds route query parameter to home, htmx updates url, and working next parameter for login
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user