blob: afcc403fe150b871b10c6c3432127e584afe527c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="UTF-8">
<title>Rhizi Sandbox Login</title>
<script src="lib/jquery.js"></script>
<script type="text/javascript">
function submit_login_form() {
var data = {
username : $('#login_username').val(),
password : $('#login_password').val(),
};
// TODO: validate
$.ajax({
type : "POST",
data : JSON.stringify(data),
dataType : 'json',
contentType : "application/json; charset=utf-8"
});
}
</script>
</head>
<body>
<div id="login_form_panel">
<form
onsubmit="submit_login_form();"
id="login_form">
<div id="login_form__heading">Rhizi Sandbox Login</div>
<br>
<div class="login_form__key">Username:</div>
<div class="login_form__value">
<input
type="text"
id="login_username">
</div>
<br>
<div class="login_form__key">Password:</div>
<div class="login_form__value">
<input
type="password"
id="login_password">
</div>
<p>
<input
type="submit"
value="Login">
</p>
</form>
<div id="failed-login">
{% if login_failed %}<b>Login Failed</b>{% endif %}
</div>
</div>
</body>
</html>
|