{% for type in alert_subscriptions %} {% for a in type.subscriptions %} {# The same time period may appear in both tables, so we need to #} {# identify by both the parent loops counter and the time_periods id. #} {% endfor %}
{{ type.title }}
Valid during Subscriptions
{% if active.profile %} {% endif %} {{ a.time_period.start }} - {{ a.time_period.end }}
{% endfor %}