Source

brainstill / bsproj / templates / registration / login.html

{% extends "layout0.html" %}
{% load i18n %}

{% block title %}{% trans "Log in" %} — {{ block.super }}{% endblock %}

{% block content %}
  <h1>{% trans "Log in" %}</h1>
  <form action="" method="post" class="login">
    {% csrf_token %}
    <dl>
      {% for field in form %}
      <dt>{{ field.label_tag }}:</dt>
      <dd>
        {{ field }}
        {{ field.errors }}
        {% if forloop.last %}
          {{ form.non_field_errors }}
        {% endif %}
      </dd>
      {% endfor %}
      <dt>&nbsp;</dt>
      <dd class="submit-row">
        <button class="submit" type="submit">{% trans "Log in" %}</button>
        <a href="{% url registration_register %}">{% trans "Register" %}</a>
      </dd>
    </dl>
  </form>
  <div style="clear: both"></div>
{% endblock %}