{% extends "base.html" %} {% block title %}{{ title }}{% endblock %} {% block content %} {% set p = report.period %} {% set labels = {'company': 'company', 'contact': 'contact', 'interaction': 'interaction', 'date': 'date', 'channel': 'channel', 'stage': 'stage', 'status': 'status', 'value': 'EUR/month', 'note': 'note'} %}

{{ title }}

← Back to report · {{ fmt_date(p.start) }} to {{ fmt_date(p.end) }} ({{ p.days }}d) · {{ rows | length }} row{{ '' if rows | length == 1 else 's' }} · {{ key }}

{% for col in columns %}{% if col == 'value' %}{% endfor %} {% for r in rows %} {% for col in columns %} {% if col == 'company' %} {% elif col == 'contact' %} {% elif col == 'interaction' %} {% elif col == 'date' %} {% elif col == 'value' %} {% else %} {% endif %} {% endfor %} {% else %} {% endfor %}
{% else %}{% endif %}{{ labels[col] }}
{{ r.company }}{% if r.cslug %}{{ r.contact }}{% else %}{{ r.contact }}{% endif %}{% if r.kind == 'interaction' %}{{ r.label }}{% endif %}{{ r.when }}{{ '{:,}'.format(r.value) if r.value is not none else '' }}{{ r[col] }}
none
{% endblock %}