{% extends "index.html" %}
{% load i18n %}
{% block extra_head_media %}
	<link rel="stylesheet" type="text/css" href="/upy_static/css/layout_login.css" />
{% endblock %}
{% block main_content %}

<div id = "login_container">

{% if form.errors %}
<p>{% trans "Your username and password didn't match. Please try again." %}</p>
{% endif %}

<div class = "login">
    <h2>{% trans "Set your username and password"%}</h2>
    <div class="login_body">
    <form method="post" action="{% url django.contrib.auth.views.login %}">{% csrf_token %}
        <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>
        </table>
        
        <input type="submit" value="login" />
        <input type="hidden" name="next" value="{{ next }}" />
    </form>
    </div>
</div>
</div>
{% endblock %}