Skip to content
Snippets Groups Projects
Commit 9c5f2e63 authored by Tomáš Valenta's avatar Tomáš Valenta Committed by jan.bednarik
Browse files

update calendar component - modals with extra info

parent e8b18cf3
Branches
No related tags found
2 merge requests!804Release,!782Improve personal calendar styling, view more info, sync Instagram on save
......@@ -105,12 +105,20 @@ class CalendarMixin(models.Model):
"end": event["end"].isoformat(),
}
if event["summary"] is not None:
if event["summary"] not in ("", None):
parsed_event["title"] = event["summary"]
if event["url"] is not None:
if event["url"] not in ("", None):
parsed_event["url"] = event["url"]
if event["location"] not in ("", None):
parsed_event["location"] = event["location"]
if event["description"] not in ("", None):
parsed_event["description"] = event["description"]
print(event)
calendar_format_events.append(parsed_event)
return json.dumps(calendar_format_events)
......
This diff is collapsed.
This diff is collapsed.
......@@ -116,7 +116,7 @@
Kalendář
</h2>
<div class="xl:max-w-[1145px] __js-root">
<ui-person-calendar events='{{ page.get_fullcalendar_data|safe }}'></ui-person-calendar>
<ui-full-calendar events='{{ page.get_fullcalendar_data|safe }}'></ui-full-calendar>
</div>
</div>
</section>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment