updates
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package templates
|
||||
|
||||
templ Login() {
|
||||
<div>
|
||||
<h2>Login</h2>
|
||||
<form hx-post="/api/user/login" hx-target="#result" hx-swap="innerHTML">
|
||||
<div>
|
||||
<label>Email:</label>
|
||||
<input type="email" name="email" placeholder="Email" required>
|
||||
</div>
|
||||
<div>
|
||||
<label>Password:</label>
|
||||
<input type="password" name="password" placeholder="Password" required>
|
||||
</div>
|
||||
<button type="submit">Login</button>
|
||||
</form>
|
||||
<div id="result"></div>
|
||||
<a href="/">Home</a>
|
||||
</div>
|
||||
}
|
||||
Reference in New Issue
Block a user