diff --git a/templates/admin.html b/templates/admin.html index 668786b..b21cdf9 100644 --- a/templates/admin.html +++ b/templates/admin.html @@ -135,6 +135,11 @@ {% endfor %} {% endif %} + {% if 'confirm' in absData[currDate] %} +

Homeroom Teacher Confirmed 班導已確認

+ {% else %} +

Homeroom Teacher NOT Confirmed 班導尚未確認

+ {% endif %} {% for c in range(periods|length + 1) %} {% if c % 4 == 0 %}
@@ -142,8 +147,12 @@
{% if c == 0 %}
Homeroom Teacher
+ {% if 'confirm' in absData[currDate] %}
{% else %} +
No Signature 導師尚未簽名
+ {% endif %} + {% 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'] %}