{% extends "registration/base.html" %}


{% block title %}{{block.super }} | Sign in {% endblock %}


{% block header %}
{% if next %}
  <h1>You need to sign-in to access that page</h1>
{% else %}
  <h1>Sign in</h1>
{% endif %}
{% endblock %}


{% block content %}
<form method="post" action="{% url django.contrib.auth.views.login %}">
  {% csrf_token %} 
  <p>{{ form.username }}</p>
  <p>{{ form.password }}</p>
  {{ form.errors }}
  <input id="id_submit" type="submit" value="Sign in with username and password" />
  <input type="hidden" name="next" value="{{ next }}" />
</form>
{% endblock %}
