templates/register.html (raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
{{ $cipher := ((.Context).Value "params").cipher }} {{ $valid := ((.Context).Value "crypto").IsValid $cipher }} <html lang="en-US"> <head> <meta charset="UTF-8" /> <title>Felt — 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.2" rel="stylesheet" /> </head> <body> <main id="registration"> <h1>Felt Admin Registration</h1> {{ if $valid }} <form action="/register/{{ $cipher }}" method="post"> <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 }} <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.2" type="text/javascript"></script> </html> |