Renamed calendar to widget_calendar to avoid error

parent b338c987
...@@ -15,11 +15,17 @@ def index(request): ...@@ -15,11 +15,17 @@ def index(request):
body = "" body = ""
for event in Event.objects.all(): for event in Event.objects.all():
location = event.location
body += "<p style='border: 2px solid gray;\ body += "<p style='border: 2px solid gray;\
border-radius:5px;\ border-radius:5px;\
padding:20px 30px;'>\ padding:20px 30px;'>\
{} <br>\ <b> Date and Time: "+event.target_datetime+" </b> <br>\
</p>".format(event) Activity: "+event.activity+" <br>\
Estimated Hours: "+event.estimated_hours+" <br>\
Course/Section: "+event.course+" <br>\
Mode: "+location.mode+" <br>\
Venue: "+location.venue+" <br>\
</p>"
return_string = "<html>\ return_string = "<html>\
<body style = 'font-family:helvetica;\ <body style = 'font-family:helvetica;\
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment