color dossier according to society
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user