SHARE
TWEET

layout.html

a guest Apr 28th, 2012 22 Never
  1. {% extends "layout.html" %}
  2. {% block body %}
  3.   <h2>Login</h2>
  4.   {% if error %}<p class="error"><strong>Error:</strong> {{ error }}{% endif %}
  5.   <form action="{{ url_for('login') }}" method="post">
  6.     <dl>
  7.       <dt>Username:
  8.       <dd><input type="text" name="username">
  9.       <dt>Password:
  10.       <dd><input type="password" name="password">
  11.       <dd><input type="submit" value="Login">
  12.     </dl>
  13.   </form>
  14. {% endblock %}
RAW Paste Data
Top