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

7 8
{% block title-page %}{% trans "Login" %}{% endblock %}

9 10 11 12
{% block extra_link %}
  {% include "open-graph.html" %}
{% endblock %}

13
{% block content_box %}
14 15 16 17 18 19
  <div class="row">
    {% if form.password.errors or form.username.errors %}
      <div class="login-form-errors">
        {% include "display-form-errors.html" %}
      </div>
    {% endif %}
20
    <div class="col-xs-{% if saml2 %}6{% else %}12{% endif %}">
21
      <div class="login-form">
22
        {% crispy form %}
23
      </div>
24
    </div>
25
    {% if saml2 %}
26 27
    <div class="col-xs-6">
      <h4 style="padding-top: 0; margin-top: 20px;">{% trans "Login with SSO" %}</h4>
28
      <a href="{% url "saml2_login" %}">{% trans "Click here!" %}</a>
29
    </div>
30 31 32
    {% endif %}
    <div class="row">
      <div class="col-sm-12">
33 34 35
        <a class="pull-right" href="{% url "accounts.password-reset" %}" style="margin-right: 15px;">
          {% trans "Forgot your password?" %}
        </a>
36
      </div>
37
    </div>
38
  </div>
39
{% endblock %}