{% for year, dates in selectable_periods.items %} {% endfor %}