Unstyled browser-based activation process
[gamestick-pjgsapi.git] / templates / activate-code.phtml
1 <html xmlns="http://www.w3.org/1999/xhtml">
2   <head>
3     <meta charset="utf-8"/>
4     <title>GameStick activation: Code</title>
5     <style>
6       .error {
7         color: red;
8       }
9     </style>
10   </head>
11   <body>
12     <h1>PlayJam GameStick activation</h1>
13     <form method="post" action="activate.php">
14       <div>
15         <label for="code">Verification code:</label>
16         <input name="code" type="text" value="<?= htmlspecialchars($code) ?>"/>
17       </div>
18       <?php if ($error): ?>
19       <div>
20         <p class="error"><?= htmlspecialchars($error) ?></p>
21       </div>
22       <?php endif ?>
23       <button type="submit">Submit</button>
24     </form>
25   </body>
26 </html>