{% load date_and_time %}
{% 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|short_time_format }} - {{ a.time_period.end|short_time_format }} Edit subscriptions
{% endfor %}