missing templates

This commit is contained in:
j 2013-02-14 15:31:13 +05:30
parent f73d722970
commit 2b55bbbece
3 changed files with 39 additions and 1 deletions

View file

@ -15,7 +15,7 @@ var UPLOAD_URL = "{{PREFIX}}/add";
<div>
You have to
<a href="{{PREFIX}}/login">login</a>
or <a href="{{PREFIX}}register">register</a>.
or <a href="{{PREFIX}}/register">register</a>.
</div>
{% else %}

18
templates/login.html Normal file
View file

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<title>videopdf</title>
</head>
<body>
<h1>videopdf</h1>
{% if message %}
<div style="color: rgb(255,0,0)">
{{message}}
</div>
{% endif %}
<form method="POST">
Username: <input name="username" value="" /><br>
Password: <input name="password" type="password" value="" /><br>
<input type="submit" value="Login"/>
</body>
</html>

20
templates/register.html Normal file
View file

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<title>videopdf</title>
</head>
<body>
<h1>videopdf</h1>
{% if message %}
<div style="color: rgb(255,0,0)">
{{message}}
</div>
{% endif %}
Register:
<form method="POST">
Username: <input name="username" value="" /><br>
Email: <input name="email" value="" /><br>
Password: <input name="password" type="password" value="" /><br>
<input type="submit" value="Login"/>
</body>
</html>