diff zpt/project/edit_calendar.zpt @ 249:f07dc0d2c60c

add project calendar (ticket #137).
author casties
date Wed, 23 Apr 2014 16:53:10 +0200
parents
children 2e507e256726
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/zpt/project/edit_calendar.zpt	Wed Apr 23 16:53:10 2014 +0200
@@ -0,0 +1,35 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html metal:use-macro="here/edit_template/macros/page">
+<head>
+</head>
+<body>
+  <tal:block metal:fill-slot="navsel" tal:define="global menusel string:calendar" />
+  <tal:block metal:fill-slot="body">
+    <form tal:attributes="action string:$root/editProjectCalendar" method="post" tal:define="cal here/getProjectCalendar">
+      <h3>Project calendar</h3>
+      <p>
+        Calendar URL: <input name="url" tal:attributes="value cal/url | nothing" size="80" />
+      </p>
+      <p>
+        URL has to link to publicly accessible calendar in iCalendar format.<br /> (e.g.
+        https://sogo.mpiwg-berlin.mpg.de/SOGo/dav/public/mpiwg-calendar/Calendar/A5B-52288800-1-2F304600.ics)
+      </p>
+      <p tal:condition="cal">Remove the calendar URL to switch off calendar display.</p>
+      <p tal:condition="not:cal">Calendar display properties can be changed after the calendar has been created.</p>
+      <p tal:condition="cal">
+        <tal:block tal:define="name string:only_upcoming; value python:test(cal.getFlag('only_upcoming'), 'yes', 'no');">
+      Show only upcoming events in the calendar: <span metal:use-macro="here/en/common_template/macros/yesno_input_radio" />
+        </tal:block>
+      </p>
+      <p tal:condition="cal">
+        Number of events to show: <input name="show_num" size="2" tal:attributes="value python:cal.getFlag('show_num', 5)" />
+      </p>
+      <p>
+        <input type="submit" value="submit" />
+      </p>
+    </form>
+
+  </tal:block>
+</body>
+</html>