login.html 902 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
{% block content %}
7 8 9
<div class="row">
  {% if form.password.errors or form.username.errors %}
    <div class="login-form-errors">
10
      {% include "display-form-errors.html" %}
11 12 13 14
    </div>
  {% endif %}
  <div class="col-sm-6">
    <div class="login-form">
15 16 17 18 19 20
      <form action="" method="POST">
          {% csrf_token %}
          {% crispy form %}
      </form>
    </div>
  </div>
21 22 23 24 25 26 27 28 29 30 31 32 33 34
  <div class="col-sm-6">
    <h4 style="padding-top: 0; margin-top: 0;">Login with eduID</h4>
    {% 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">
    <a class="pull-right" href="">Forgot your password?</a>
  </div>
</div>
35
{% endblock %}