<html>
<head>
    <title>Login - django-urldecorators example project</title>
</head>
<body>
    <h1>Login</h1>
    {% if form.errors %}
        <p>Your username and password didn't match. Please try again.</p>
    {% endif %}

    <form method="post" action="">
    <table>
        <tr>
            <td>{{ form.username.label_tag }}</td>
            <td>{{ form.username }}</td>
        </tr>
        <tr>
            <td>{{ form.password.label_tag }}</td>
            <td>{{ form.password }}</td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="submit" value="Login" />
                <input type="hidden" name="next" value="{{ next }}" />
                {% csrf_token %}
            </td>
        </tr>
    </table>
    </form>

    <p><a href="{% url 'home' %}">Home</a></p>
</body>
</html>