login.html 1001 Bytes
Newer Older
1
{% extends "registration/base.html" %}
2
{% load i18n %}
3
{% load crispy_forms_tags %}
4
{% get_current_language as LANGUAGE_CODE %}
5

6 7
{% block title %}{% trans "Login" %}{% endblock %}

8
{% block content %}
9 10 11
<div class="row">
  {% if form.password.errors or form.username.errors %}
    <div class="login-form-errors">
12
      {% include "display-form-errors.html" %}
13 14
    </div>
  {% endif %}
15
  <div class="col-sm-{% if saml2 %}6{% else %}12{% endif %}">
16
    <div class="login-form">
17
      <form action="" method="POST">
18 19
        {% csrf_token %}
        {% crispy form %}
20 21 22
      </form>
    </div>
  </div>
23
  {% if saml2 %}
24
  <div class="col-sm-6">
Kálmán Viktor committed
25 26
    <h4 style="padding-top: 0; margin-top: 0;">{% trans "Login with SSO" %}</h4>
    <a href="{% url "saml2_login" %}">{% trans "Click here!" %}</a>
27
  </div>
28
  {% endif %}
29 30 31
</div>
<div class="row">
  <div class="col-sm-12">
Kálmán Viktor committed
32
    <a class="pull-right" href="{% url "accounts.password-reset" %}">{% trans "Forgot your password?" %}</a>
33 34
  </div>
</div>
35
{% endblock %}