{% extends 'base.html' %} {% load mptt_tags %} {% load custom_tags_and_filters %} {% block title %}Add area access record{% endblock %} {% block content %}

New area access record

Only use this form under extraordinary circumstances (such as when tablet login is not working). This form is not intended to be used regularly.

{% csrf_token %}
Customer: {{ customer }}
{% if customer.active_project_count == 1 %} Area access will be billed to the customer's only project, "{{ customer.active_projects.0 }}" {% else %} Which of the customer's projects would you like to bill?
{% for p in customer.active_projects %}
{% endfor %}
{% endif %}
{% if areas|length == 1 %} The customer only has access to the {{ areas.0 }}. Access will be billed for that area. {% else %} {{ customer }} has access to the following areas. Which would you like to bill for access? {% include 'area_access/login_areas.html' with areas=areas user_accessible_areas=user_accessible_areas %} {% endif %}
{% button type="save" value="Create area access record" %}
{% endblock %}