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