Debian Codegraph @

share/templates/login.html

raw
1 ? my ($app, $error) = @_;
2 <html>
3 <head>
4 <title>Use Alice Login</title>
5 <link rel="shortcut icon" href="<?= $app->static_url("favicon.ico") ?>">
6 <style type="text/css">
7 body {
8 text-align: center;
9 font-family: Helvetica, Arial, sans-serif;
10 font-size: 12px;
11 background: #eee;
12 }
13 form {
14 display: block;
15 width: 150px;
16 margin: 0 auto;
17 text-align: left;
18 background: #fff;
19 border: 8px solid #ccc;
20 padding: 20px;
21 }
22 input, label {
23 display: block;
24 width: 150px;
25 }
26 input {
27 margin-bottom: 15px;
28 }
29 input[type="submit"] {
30 font-size: 16px;
31 margin-bottom: 0;
32 margin-top: 30px;
33 }
34 .error {
35 color: #d00b0b;
36 display: block;
37 margin-top: 15px;
38 }
39 </style>
40 <link rel="apple-touch-icon" href="<?= $app->static_url("image/alice.png") ?>" />
41 <link rel="apple-touch-startup-image" href="<?= $app->static_url("image/alice.png") ?>" />
42 <meta name="viewport" content="width=device-width; initial-scale=1; maximum-scale=1" />
43 <meta name="apple-mobile-web-app-capable" content="yes">
44 <meta name="format-detection" content="telephone=no">
45 </head>
46 <body>
47 <form action="/login" method="post">
48 <label for="username">User Name:</label>
49 <input type="text" name="username" value="" id="username" />
50
51 <label for="password">Password:</label>
52 <input type="password" name="password" value="" id="password" />
53
54 <input type="submit" value="Log in" />
55 <? if ($error) { ?>
56 <span class="error"><?= $error ?></span>
57 <? } ?>
58 </form>
59 </body>
60 </html>