{% load cc_admin %}{% with d=widget.data %}
{% include "cc_admin/widgets/_head.html" %}
{{ d.total }}{{ d.note }}
{% for sc in d.scenarios %}{% endfor %}
{% for p in d.periods %}
{% if not p.empty %}
{% endif %}
{{ p.label }}{% for k, v in p.texts.items %}{% if k == d.chosen %}{{ v }}{% endif %}{% endfor %}
{% endfor %}
{{ d.scenarios.0.label }}{{ d.scenarios.1.label }}{{ d.scenarios.2.label }}
{% if widget.spec.periods is not False %}
{% for p in d.periods %}
{{ p.label }}{{ p.count }} {{ d.unit }}
{% if p.items %}
    {% for item in p.items|slice:":4" %}
  • {% if item.url %}{{ item.title }}{% else %}{{ item.title }}{% endif %}{{ item.display }}{% if item.sub %}{{ item.sub }}{% endif %}
  • {% endfor %}
{% else %}

{{ d.empty_text }}

{% endif %}
{% endfor %}
{% endif %}
{% endwith %}