{% 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 check if everyone is present!
Please Sign Below
Period:
Subject:
{% 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'] %}