{% 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|time:'TIME_FORMAT_SHORT' }} - {{ a.time_period.end|time:'TIME_FORMAT_SHORT' }} Edit subscriptions
{% endfor %}