{% extends "fa/foneastra_base.html" %} {% load i18n %} {% block page_stylesheets %} {% endblock %} {% block title %}{% trans "Login" %}{% endblock %} {% block auth %}
{% if user.is_authenticated %}

{% trans "Log out" %} {{ user.username }}

{% else %}

{% trans "Log in" %}

{% endif %}
{% endblock %} {% block content %} {% if form.errors %}

{% trans "Oops. Your username and password didn't match. Please try again." %}

{% endif %} {% if user.is_authenticated %}

{% trans "You are already logged in." %}

{% else %}

{% trans "Please log in to FoneAstra" %}

{% csrf_token %}
{{ form.username.label_tag }} {{ form.username }}
{{ form.password.label_tag }} {{ form.password }}
{% endif %} {% endblock %}