Debian Codegraph @

example/server/exampleop/templates/login.html

raw
1 {{ define "login" -}}
2 <!DOCTYPE html>
3 <html>
4 <head>
5 <meta charset="UTF-8">
6 <title>Login</title>
7 </head>
8 <body style="display: flex; align-items: center; justify-content: center; height: 100vh;">
9 <form method="POST" action="/login/username" style="height: 200px; width: 200px;">
10
11 <input type="hidden" name="id" value="{{.ID}}">
12
13 <div>
14 <label for="username">Username:</label>
15 <input id="username" name="username" style="width: 100%">
16 </div>
17
18 <div>
19 <label for="password">Password:</label>
20 <input id="password" name="password" style="width: 100%">
21 </div>
22
23 <p style="color:red; min-height: 1rem;">{{.Error}}</p>
24
25 <button type="submit">Login</button>
26 </form>
27 </body>
28 </html>
29 {{- end }}