{% extends "base.html" %} {% load static %} {% block title %}UCC Member Login{% endblock %} {% block extrahead %} {{ block.super }} {{ form.media }} {% endblock %} {% block content_title %}

Login to MemberDB

{% endblock %} {% block content %}
{% if form.errors and not form.non_field_errors %}

{% if form.errors.items|length == 1 %}Please correct the error below.{% else %}Please correct the errors below.{% endif %}

{% endif %} {% if form.non_field_errors %} {% for error in form.non_field_errors %}

{{ error }}

{% endfor %} {% endif %}

{% if user.is_authenticated %} You are already logged in as {{ user.username }}. Would you like to login to a different account? {% else %} Please enter your UCC username and password below.

{% if not request.member %} If you do not have a UCC account yet, please apply for a membership by going to the registration page. {% else %} It appears you have already registered. If you have not yet received your UCC login details, please contact us. {% endif %} {% endif %}

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