login.html 636 B

12345678910111213141516171819202122
  1. {% extends "base.html" %}
  2. {% load i18n %}
  3. {% load account %}
  4. {% block head_title %}{% trans "Sign In" %}{% endblock %}
  5. {% block content %}
  6. <h1>{% trans "Sign In" %}</h1>
  7. <form class="login" method="POST" action="{% url 'account_login' %}">
  8. {% csrf_token %}
  9. {{ form.as_p }}
  10. {% if redirect_field_value %}
  11. <input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" />
  12. {% endif %}
  13. <a class="button secondaryAction" href="{% url 'account_reset_password' %}">{% trans "Forgot Password?" %}</a>
  14. <button class="primaryAction" type="submit">{% trans "Sign In" %}</button>
  15. </form>
  16. {% endblock %}