{% extends "cosinnus/base.html" %} {% load i18n cosinnus_tags widget_tweaks %} {% block page_title %}{% trans "Login" %}{% endblock %} {% block jshead %} {% comment %} This page deals with authentication data and loads only the most necessary vendor scripts! {% endcomment %} {% endblock jshead %} {% block override_breadcrumb %} {% endblock override_breadcrumb %} {% block leftnav %} {% if not SETTINGS.COSINNUS_IS_SSO_PORTAL %} {% include "cosinnus/registration/leftnav.html" with current_page="login" %} {% endif %} {% endblock leftnav %} {% block content %} {% if not SETTINGS.COSINNUS_IS_SSO_PORTAL %}
{% csrf_token %} {{ form.non_field_errors }}

{% trans "Log in" %}

{# Regular Field #} {% trans "Email" as login_label %} {% trans "Email" as login_placeholder %} {% include 'cosinnus/fields/default_field.html' with field=form.username label=login_label placeholder=login_placeholder first=True %} {# Regular Field #} {% trans "Password" as password_label %} {% trans "Password" as password_placeholder %} {% include 'cosinnus/fields/default_field.html' with field=form.password label=password_label placeholder=password_placeholder %}
{% else %}

{% trans "Login" %}


{% include 'cosinnus/registration/sso_login_button.html' %}
{% endif %} {% endblock content %}