Debian Codegraph @

example/server/exampleop/templates/confirm_device.html

raw
1 {{ define "confirm_device" -}}
2 <!DOCTYPE html>
3 <html>
4 <head>
5 <meta charset="UTF-8">
6 <title>Confirm device authorization</title>
7 <style>
8 .green{
9 background-color: green
10 }
11 .red{
12 background-color: red
13 }
14 </style>
15 </head>
16 <body>
17 <h1>Welcome back {{.Username}}!</h1>
18 <p>
19 You are about to grant device {{.ClientID}} access to the following scopes: {{.Scopes}}.
20 </p>
21 <button onclick="location.href='./confirm?action=allowed'" type="button" class="green">Allow</button>
22 <button onclick="location.href='./confirm?action=denied'" type="button" class="red">Deny</button>
23 </body>
24 </html>
25 {{- end }}