goipam/web/templates/forms.templ
2024-02-22 10:18:59 +01:00

11 lines
446 B
Text

package templates
templ loginForm() {
<form id="loginForm" method="post" name="login" action="/login.html" method="POST" hx-post="/login.html">
<label>Username </label>
<input type="text" placeholder="username" name="username" required class="input"/>
<label>Password </label>
<input type="password" name="password" required class="input"/>
<button class="button is-primary" type="submit" hx-trigger="click">Login</button>
</form>
}