{% extends 'base.html' %} {% load mptt_tags %} {% load custom_tags_and_filters %} {% block title %}Log in to an area{% endblock %} {% block content %}

Log in to an access controlled area

{% if error_message %}
{{ error_message }}
{% elif area_error_message %}
{{ area_error_message }}
{% endif %} {% if not error_message %}
{% csrf_token %}
{% if projects|length == 1 %} You only have one active project. Area access will be billed to: {{ projects.0 }} {% else %}

Charge area access to which project?

{% for p in projects %}
{% endfor %} {% endif %}
{% if areas|length == 1 %} You are only able to access one area: {{ areas.0 }} {% else %}

Log in to which area?

{% include 'area_access/login_areas.html' with area_id=area_id %} {% endif %}
{% button type="save" icon="glyphicon-log-in" value="Log in" %}
{% endif %} {% endblock %}