{% load static %} {% load i18n %} {{ JMS_TITLE }}
{% if form.challenge %}
{% else %}
{% endif %} {{ JMS_TITLE }}
{% trans 'Welcome back, please enter username and password to login' %}
{% csrf_token %} {% if form.non_field_errors %} {% if form.challenge %}
{% else %}
{% endif %}

{{ form.non_field_errors.as_text }}

{% elif form.errors.captcha %}

{% trans 'Captcha invalid' %}

{% else %}
{% endif %}
{% if form.errors.username %}

{{ form.errors.username.as_text }}

{% endif %}
{% if form.errors.password %}

{{ form.errors.password.as_text }}

{% endif %}
{% if form.challenge %}
{% if form.errors.challenge %}

{{ form.errors.challenge.as_text }}

{% endif %}
{% endif %}
{{ form.captcha }}