summaryrefslogtreecommitdiff
path: root/service/pixelated/assets
diff options
context:
space:
mode:
authorFolker Bernitt <fbernitt@thoughtworks.com>2016-01-22 17:42:35 +0100
committerFolker Bernitt <fbernitt@thoughtworks.com>2016-01-22 17:43:21 +0100
commit18123f6745beaba99b40a4db6d9aad1dbcdf6925 (patch)
tree037465bfdcd0825a3142d23339ed383b1bc23633 /service/pixelated/assets
parentdacc69ea5cc3a35faf05a95e8976cd9a1fdec621 (diff)
Show sensible error message for failed login
- Issue #576 - Use of twisted templating
Diffstat (limited to 'service/pixelated/assets')
-rw-r--r--service/pixelated/assets/login.html24
1 files changed, 14 insertions, 10 deletions
diff --git a/service/pixelated/assets/login.html b/service/pixelated/assets/login.html
index 734fffd0..d59ac4cd 100644
--- a/service/pixelated/assets/login.html
+++ b/service/pixelated/assets/login.html
@@ -1,25 +1,29 @@
<!DOCTYPE html>
-<html>
+<html xmlns:t="http://twistedmatrix.com/ns/twisted.web.template/0.1">
<head>
<title>Pixelated - Login</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <link rel="icon" type="image/png" href="/startup-assets/favicon.png">
- <link rel="stylesheet" type="text/css" href="/startup-assets/normalize.min.css">
- <link rel="stylesheet" type="text/css" href="/startup-assets/pixelated.css">
- <link rel="stylesheet" type="text/css" href="/startup-assets/opensans.css">
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <link rel="icon" type="image/png" href="/startup-assets/favicon.png" />
+ <link rel="stylesheet" type="text/css" href="/startup-assets/normalize.min.css" />
+ <link rel="stylesheet" type="text/css" href="/startup-assets/pixelated.css" />
+ <link rel="stylesheet" type="text/css" href="/startup-assets/opensans.css" />
</head>
<body>
<div class="content">
<div class="login">
- <img class="logo" src="/startup-assets/pixelated-logo-orange.svg" alt="Pixelated logo" />
+ <img class="logo" src="/startup-assets/pixelated-logo-orange.svg" alt="Pixelated logo"/>
+
+ <p t:render="error_msg" class="error" ></p>
<form class="standard" id="login_form" action="/login" method="post">
- <input type="text" name="username" id="email" class="text-field" placeholder=" username" tabindex="1" autofocus>
- <input type="password" name="password" id="password" class="text-field" placeholder=" password" tabindex="2" autocomplete="off">
+ <input type="text" name="username" id="email" class="text-field" placeholder=" username" tabindex="1"
+ autofocus="" />
+ <input type="password" name="password" id="password" class="text-field" placeholder=" password"
+ tabindex="2" autocomplete="off" />
- <input type="submit" name="login" value="Login" class="button" tabindex="3">
+ <input type="submit" name="login" value="Login" class="button" tabindex="3" />
</form>
</div>