{% extends 'base.html' %} {% load mptt_tags %} {% 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?
    {% recursetree areas %}
  • {% if node not in user_accessible_areas %}{{ node.name }} {% else %}

    {% endif %} {% if not node.is_leaf_node %}
      {{ children }}
    {% endif %}
  • {% endrecursetree %}
{% endif %}
{% endblock %}