login.html 1.29 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 9 10
{% block title-page %}{% trans "Login" %}{% endblock %}

{% block navbar-brand %}
  <a class="navbar-brand" href="{% url "dashboard.index" %}" style="padding: 10px 15px;">
11
    <img src="{% static "dashboard/img/logo.png" %}" style="height: 25px;"/>
12 13
  </a>
{% endblock %}
14

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