color dossier according to society

This commit is contained in:
2018-12-04 18:21:25 +01:00
parent 1fd3016ed3
commit 132e9b118d
9 changed files with 73 additions and 21 deletions

View File

@@ -129,13 +129,15 @@ def agenda(request):
# déterminer la couleur de l'event selon la societe
societe = row.nodossier[0:2]
if societe == "PE":
color = "LightYellow"
color = "#ffffb3"
elif societe == "ME":
color = "#ffe44d"
elif societe == "PL":
color = "LightGreen"
color = "#b3ff66"
elif societe == "PO":
color = "LightBlue"
color = "#b1dae7"
else:
color = "Gold"
color = "#ffb3cc"
json_event = {
'title': '%s %s' % (row.c_qualite, row.c_nom),
@@ -188,13 +190,15 @@ def planning(request):
# déterminer la couleur de l'event selon la societe
societe = row.nodossier[0:2]
if societe == "PE":
color = "LightYellow"
color = "#ffffb3"
elif societe == "ME":
color = "#ffe44d"
elif societe == "PL":
color = "LightGreen"
color = "#b3ff66"
elif societe == "PO":
color = "LightBlue"
color = "#b1dae7"
else:
color = "Gold"
color = "#ffb3cc"
json_event = {
'resourceId': user.CD_UTI,