mirror of https://github.com/mitsuhiko/flask.git
Jeffrey D
11 years ago
11 changed files with 52 additions and 52 deletions
@ -1,14 +1,14 @@ |
|||||||
{% extends "layout.html" %} |
{% extends "layout.html" %} |
||||||
{% block body %} |
{% block body %} |
||||||
<h2>Login</h2> |
<h2>Login</h2> |
||||||
{% if error %}<p class=error><strong>Error:</strong> {{ error }}{% endif %} |
{% if error %}<p class="error"><strong>Error:</strong> {{ error }}{% endif %} |
||||||
<form action="{{ url_for('login') }}" method=post> |
<form action="{{ url_for('login') }}" method="post"> |
||||||
<dl> |
<dl> |
||||||
<dt>Username: |
<dt>Username: |
||||||
<dd><input type=text name=username> |
<dd><input type="text" name="username"> |
||||||
<dt>Password: |
<dt>Password: |
||||||
<dd><input type=password name=password> |
<dd><input type="password" name="password"> |
||||||
<dd><input type=submit value=Login> |
<dd><input type="submit" value="Login"> |
||||||
</dl> |
</dl> |
||||||
</form> |
</form> |
||||||
{% endblock %} |
{% endblock %} |
||||||
|
@ -1,8 +1,8 @@ |
|||||||
<!doctype html> |
<!doctype html> |
||||||
<title>jQuery Example</title> |
<title>jQuery Example</title> |
||||||
<script type=text/javascript |
<script type="text/javascript" |
||||||
src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> |
src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> |
||||||
<script type=text/javascript> |
<script type="text/javascript"> |
||||||
var $SCRIPT_ROOT = {{ request.script_root|tojson|safe }}; |
var $SCRIPT_ROOT = {{ request.script_root|tojson|safe }}; |
||||||
</script> |
</script> |
||||||
{% block body %}{% endblock %} |
{% block body %}{% endblock %} |
||||||
|
Loading…
Reference in new issue