
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3742 fd906abe-77d9-0310-91a1-e0d9ade77398
55 lines
2.1 KiB
XML
55 lines
2.1 KiB
XML
<!-- $Id$ -->
|
|
|
|
<metal:calendar define-macro="main"
|
|
tal:define="calendar nocall:context/@@calendar_info;
|
|
year calendar/selectedYear;
|
|
month calendar/selectedMonth;
|
|
events calendar/events">
|
|
<table width="100%" class="calendar">
|
|
<tr>
|
|
<td class="arrows">
|
|
<a tal:attributes="href
|
|
string:?cal_year=${calendar/previousYear}&cal_month=$month">«</a>
|
|
<a tal:define="m calendar/previousMonth"
|
|
tal:attributes="href
|
|
string:?cal_year=${m/year}&cal_month=${m/month}">‹</a>
|
|
</td>
|
|
<td align="center">
|
|
<span i18n:translate=""
|
|
tal:content="python:calendar.monthNames[month-1]">February</span>
|
|
<span tal:content="year">2010</span></td>
|
|
<td class="arrows" align="right">
|
|
<a tal:define="m calendar/nextMonth"
|
|
tal:attributes="href
|
|
string:?cal_year=${m/year}&cal_month=${m/month}">›</a>
|
|
<a tal:attributes="href
|
|
string:?cal_year=${calendar/nextYear}&cal_month=$month">»</a>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table width="100%" class="calendar"
|
|
tal:define="mc calendar/monthCalendar">
|
|
<tr>
|
|
<td> </td>
|
|
<td align="center"
|
|
tal:repeat="weekday calendar/weekDays">
|
|
<span i18n:translate=""
|
|
tal:content="weekday" />
|
|
</td>
|
|
</tr>
|
|
<tr tal:repeat="week mc">
|
|
<td align="center" class="week_number"
|
|
tal:content="python:calendar.getWeekNumber(week)"></td>
|
|
<td align="center"
|
|
tal:attributes="class python:'day ' + calendar.getCssClass(day)"
|
|
tal:repeat="day week">
|
|
<span tal:define="dayEvents python:day and events[day-1]">
|
|
<a class="has_events"
|
|
tal:omit-tag="not:dayEvents"
|
|
tal:attributes="href python:calendar.getEventsUrl(day);
|
|
title python:calendar.getEventTitles(day)"
|
|
tal:content="python: day or u''" /></span>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</metal:calendar>
|