login.html 987 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 15 16
    </div>
  {% endif %}
  <div class="col-sm-6">
    <div class="login-form">
17 18 19 20 21 22
      <form action="" method="POST">
          {% csrf_token %}
          {% crispy form %}
      </form>
    </div>
  </div>
23
  <div class="col-sm-6">
24
    <h4 style="padding-top: 0; margin-top: 0;">Login with SSO</h4>
25 26 27 28 29 30 31 32 33
    {% if saml2 %}
      <a href="{% url "saml2_login" %}">Click here!</a>
    {% else %}
      {% trans "SAML2 NOT AVAILABLE" %}
    {% endif %}
  </div>
</div>
<div class="row">
  <div class="col-sm-12">
34
    <a class="pull-right" href="{% url "accounts.password-reset" %}">Forgot your password?</a>
35 36
  </div>
</div>
37
{% endblock %}