{% for j in periods %}
{% if 'signature' in absData[currDate][j] %}
{% if i in absData[currDate][j] %}
X
{% else %}
{% if absData[currDate][j]['name'] != 'GP' %}
V
{% else %}
{% if (homeroomData[i]['GP_Class'][absData[currDate][j]['teacher']] in
absData[currDate][j]['signature'])%}
V
{% else %}
{% endif %}
{% endif %}
{% endif %}
{% else %}
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}
{% 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'] %}