2023-09-18 00:26:42 +01:00
|
|
|
{{ define "title"}} Home : AI Stuff {{ end }}
|
|
|
|
|
|
|
|
{{ define "mainbody" }}
|
2023-09-18 13:50:03 +01:00
|
|
|
<div class="login-page">
|
2023-09-18 00:26:42 +01:00
|
|
|
<div>
|
2023-09-18 13:50:03 +01:00
|
|
|
<h1>
|
|
|
|
Login
|
|
|
|
</h1>
|
2023-09-19 13:39:59 +01:00
|
|
|
<form method="post" action="/login" {{if .Submited}}class="submitted"{{end}} >
|
2023-09-18 13:50:03 +01:00
|
|
|
<fieldset>
|
|
|
|
<label for="email">Email</label>
|
2023-09-19 13:39:59 +01:00
|
|
|
<input type="email" required name="email" {{if .Email}} value="{{.Email}}" {{end}} />
|
2023-09-18 13:50:03 +01:00
|
|
|
</fieldset>
|
|
|
|
<fieldset>
|
|
|
|
<label for="password">Password</label>
|
|
|
|
<input required name="password" type="password" />
|
2023-09-19 13:39:59 +01:00
|
|
|
{{if .NoUserOrPassword}}
|
|
|
|
<span class="form-msg error">
|
|
|
|
Either the password or the email are incorrect
|
|
|
|
</span>
|
|
|
|
{{end}}
|
2023-09-18 13:50:03 +01:00
|
|
|
</fieldset>
|
|
|
|
<button>
|
|
|
|
Login
|
|
|
|
</button>
|
2023-09-19 13:39:59 +01:00
|
|
|
<div class="spacer"></div>
|
|
|
|
<a class="simple-link text-center w100 spacer" hx-get="/register" hx-headers='{"REQUEST-TYPE": "htmlfull"}' hx-push-url="true" hx-swap="outerHTML" hx-target=".app">
|
|
|
|
Register
|
|
|
|
</a>
|
2023-09-18 13:50:03 +01:00
|
|
|
</form>
|
2023-09-18 00:26:42 +01:00
|
|
|
</div>
|
2023-09-18 13:50:03 +01:00
|
|
|
</div>
|
2023-09-18 00:26:42 +01:00
|
|
|
{{ end }}
|
|
|
|
|