felt/templates/register.html

27 lines
975 B
HTML
Raw Normal View History

{{ $cipher := ((.Context).Value "params").cipher }}
{{ $valid := ((.Context).Value "crypto").IsValid $cipher }}
<html lang="en-US">
<head>
<meta charset="UTF-8" />
<title>Felt &mdash; Admin Registration</title>
<meta name="viewport" content="width=device-width" />
<link rel="shortcut icon" href="/table/favicon.png"/>
<link href="/table/style.css?v=0.2.0" rel="stylesheet" />
</head>
<body>
<main id="registration">
<h1>Felt Admin Registration</h1>
{{ if $valid }}
<form action="/register/{{ $cipher }}" method="post">
2023-07-11 06:34:13 +00:00
<label>username <input id="username" name="username" required/></label>
<label>password <input id="password" name="password" type="password" required/></label>
<button type="submit">Register</button>
</form>
{{ else }}
2023-07-11 06:34:13 +00:00
<span class="error">The registration token you provided is invalid;<br/> obtain a new one.</span>
{{end}}
</main>
</body>
<script src="/table/util.js?v=0.2.0" type="text/javascript"></script>
</html>