{% extends "base.html" %} {% block content %} {{ h.form(url(controller='auth', action='login'), method='post') }}
Log in
{% if c.welcome_message is defined %}
{{c.welcome_message}}
{% endif %}
Username
{{ h.text('username') }}
Password
{{ h.password('password') }}
{{ h.submit('send', 'Log in', class='button button_red') }}
{{ h.end_form() }} {% if c.error %}

Result

{{ c.error }}
{% endif %} {% endblock %}