{% if 'confirm' in absData[currDate] %}
{% else %}
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
{% for i in periods %}
{% if ('signature' in absData[currDate][i] or absData[currDate][i]['name'] == 'GP' or
'confirm' in absData[currDate]) %}
{% else %}
{% endif %}
{% endfor %}
{% endif %}
{% if 'confirm' in absData[currDate] %}
{% else %}
{% endif %}
Please Sign Below
{% for c in range(periods|length + 1) %}
{% if c % 2 == 0 %}
{% endif %}
{% if c == 0 %}
Homeroom Teacher
{% else %}
{% if absData[currDate][periods[c-1]]['name'] == 'GP' %}
{% if 'signature' in absData[currDate][periods[c-1]] %}
{% for i in absData[currDate][periods[c-1]]['signature'] %}