-{% extends "base.html" %}
+{% extends "catalogue/base.html" %}
+{% load i18n %}
-{% block subtitle %} - Logowanie {% endblock subtitle %}
+{% block subtitle %} - {% trans "Log in" %} {% endblock subtitle %}
-{% block maincontent %}
+{% block inner_content %}
-<div class="isection">
-<form method="POST" action="{% url django.contrib.auth.views.login %}">
-{{ form.as_p }}
-<p><input type="submit" value="Login" /></p>
-<input type="hidden" name="next" value="{{ next|urlencode }}" />
-</form>
-</div>
+ <form method="POST" action="{% url 'login' %}">
+ {% csrf_token %}
+ {{ form.non_field_errors }}
+ <label for="email">
+ E-mail</label>
+ {{ form.username.errors }}
+ <input name="username" class="form-control" type="email">
-{% endblock maincontent %}
+ <label for="password">
+ Password</label>
+ {{ form.password.errors }}
+ <input name="password" class="form-control" type="password">
+
+
+ <input type="checkbox" name="keep">
+ <label for="keep">{% trans "Keep me logged in" %}</label>
+
+ <div><button class="btn btn-default">
+ {% trans "Log in" %}
+ </button>
+ </div>
+ </form>
+ <p><a href="{% url 'password_reset' %}">{% trans "I forgot my password" %}</a></p>
+ <hr>
+ <a class="btn btn-default" href="{% url 'register' %}">{% trans "Register" %}</a>
+
+{% endblock %}