From c3f815939de8dbcc7aae220e9b4744a3ebae5689 Mon Sep 17 00:00:00 2001 From: raphael Date: Wed, 15 Apr 2020 18:47:41 +0000 Subject: [PATCH] adds writing the color as css attribute and then via jsqurey going through all of the class and adding this as background color --- app.py | 1 + template/calendar.html | 20 ++++++++++++++++---- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/app.py b/app.py index fd476f6..3c0f8fc 100644 --- a/app.py +++ b/app.py @@ -104,6 +104,7 @@ def calendarsFromDb(): calId = calendar[1] toggle = calendar[3] color = calendar[4] + pyCalendars.append(Calendar(name, toggle, color)) return pyCalendars diff --git a/template/calendar.html b/template/calendar.html index 288bdaf..cad847c 100644 --- a/template/calendar.html +++ b/template/calendar.html @@ -11,7 +11,7 @@ {% for item in calendars %}
-
{{ item.name }}
+
{{ item.name }}
@@ -24,7 +24,7 @@
-
+
@@ -36,6 +36,8 @@