From 54b5bfae637d7ef665cba9038c6c1f607da43ab8 Mon Sep 17 00:00:00 2001 From: Aaron Lee Date: Sun, 26 Sep 2021 21:06:39 +0800 Subject: [PATCH] Add not confirmed notification in admin --- templates/admin.html | 9 +++++++++ 1 file changed, 9 insertions(+) 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'] %}