Debian Codegraph @

example/server/exampleop/templates/usercode.html

raw
1 {{ define "usercode" -}}
2 <!DOCTYPE html>
3 <html>
4 <head>
5 <meta charset="UTF-8">
6 <title>Device authorization</title>
7 </head>
8 <body style="display: flex; align-items: center; justify-content: center; height: 100vh;">
9 <form method="POST" style="height: 200px; width: 200px;">
10 <h1>Device authorization</h1>
11 <div>
12 <label for="user_code">Code:</label>
13 <input id="user_code" name="user_code" style="width: 100%">
14 </div>
15 <p style="color:red; min-height: 1rem;">{{.Error}}</p>
16
17 <button type="submit">Login</button>
18 </form>
19 </body>
20 </html>
21 {{- end }}