{% set title = "Overall Time Distribution" %} {% set navigation = [('Reports', ''), ('Time Distribution', '')] %} {% include 'include_header.html' %}
{% if users_imported %}

Imported users:

    {% for iu in users_imported %}
  • {{ iu['name'] }}
  • {% endfor %}
{% endif %} {% if users_failed %}

Failed to import users:

    {% for fu in users_failed %}
  • {{ fu['name'] }} - Error: {{ fu['error'] }}
  • {% endfor %}
{% endif %}
Date Range
Overall Distribution
{% for row in overall.data() %} {% endfor %}
name bookings days percent cost
{{ row[0] }} {{ row[1] }} {{ row[2] }} {{ row[3] }} {{ row[4] }}
CEM Distribution
{% for row in cem.data() %} {% set alias = app_dict[row[0]] %} {% endfor %}
name bookings days percent cost
{{ row[0] }} {% if alias %} ( {{ alias }} ) {% endif %} {{ row[1] }} {{ row[2] }} {{ row[3] }} {{ row[4] }}
{{ details_title }}
{# {% for b in details_bookings %}#} {# #} {# #} {# #} {# #} {# #} {# #} {# #} {# #} {# {% endfor %}#} {% if details_groups|length > 0 %} {% set bookings = details_groups %} {% set start_index = 1 %} {% else %} {% set bookings = [details_bookings] %} {% set start_index = 0 %} {% endif %} {% for bList in bookings %} {% set first = bList[0] %} {% if start_index > 0 %} {# First row is special #} {% endif %} {# Then the other rows with real bookings info #} {% for b in bList[start_index:] %} {% endfor %} {% endfor %}
Booking Title Start End Days Cost Actions
{{ b['title'] }}{{ b['pretty_start'] }}{{ b['pretty_end'] }}{{ b['days'] }}{{ b['total_cost'] }}#} {#
{{ first[1] }} {{ first[2] }} {{ first[3] }}
{{ b['title'] }} {{ b['pretty_start'] }} {{ b['pretty_end'] }} {{ b['days'] }} {{ b['total_cost'] }}
{% include 'booking_form.html' %}