Improved ics
This commit is contained in:
parent
fc4471717b
commit
8b36926ff0
2 changed files with 25 additions and 23 deletions
|
@ -22,4 +22,10 @@ type = string
|
||||||
label = Link zu weiteren Informationen
|
label = Link zu weiteren Informationen
|
||||||
type = string
|
type = string
|
||||||
|
|
||||||
|
[fields.summary]
|
||||||
|
label = Beschreibung
|
||||||
|
type = text
|
||||||
|
|
||||||
|
[fields.confirmed]
|
||||||
|
label = Status: bestätigt?
|
||||||
|
type = boolean
|
||||||
|
|
|
@ -1,25 +1,21 @@
|
||||||
BEGIN:VCALENDAR
|
{% set fqdn = 'c3woc.de'
|
||||||
|
%}BEGIN:VCALENDAR
|
||||||
VERSION:2.0
|
VERSION:2.0
|
||||||
PRODID:{{ this.url }}http://www.example.com/calendarapplication/
|
CALSCALE:GREGORIAN
|
||||||
METHOD:PUBLISH
|
PRODID:https://{{ fqdn }}/{{ this._id }}
|
||||||
|
METHOD:PUBLISH{%
|
||||||
|
for blk in this.termine.blocks %}
|
||||||
BEGIN:VEVENT
|
BEGIN:VEVENT
|
||||||
UID:461092315540@example.com
|
SUMMARY:{{ blk.event }}
|
||||||
ORGANIZER;CN="Alice Balder, Example Inc.":MAILTO:alice@example.com
|
ORGANIZER;CN="C3 Waffel Operation Center":MAILTO:waffel@{{ fqdn }}
|
||||||
LOCATION:Irgendwo
|
DTSTART;TZID=Europe/Berlin:{{ blk.start.strftime('%Y%m%dT%H%M%S') }}
|
||||||
GEO:48.85299;2.36885
|
DTEND;TZID=Europe/Berlin:{{ blk.ende.strftime('%Y%m%dT%H%M%S') }}
|
||||||
SUMMARY:Eine Kurzinfo
|
STATUS:{%
|
||||||
DESCRIPTION:Beschreibung des Termines
|
if blk.confirmed %}CONFIRMED{%
|
||||||
CLASS:PUBLIC
|
else %}TENTATIVE{% endif %}
|
||||||
DTSTART:20060910T220000Z
|
LOCATION:{{ blk.ort }}
|
||||||
DTEND:20060919T215900Z
|
SUMMARY:{{ blk.summary }}
|
||||||
DTSTAMP:20060812T125900Z
|
DESCRIPTION:{{ blk.url }}
|
||||||
END:VEVENT
|
END:VEVENT{%
|
||||||
END:VCALENDAR
|
endfor %}
|
||||||
|
END:VCALENDAR
|
||||||
{{ this._gid }}
|
|
||||||
|
|
||||||
{% for blk in this.termine.blocks %}
|
|
||||||
{{ blk }}
|
|
||||||
{{ blk.start }}
|
|
||||||
{% endfor %}
|
|
||||||
{{ this }}
|
|
||||||
|
|
Loading…
Reference in a new issue