8 caractères requis pour un mot de passe.
[Plinn.git] / Products / Plinn / skins / generic / calendar_view.pt
1 <tal:block tal:define="
2 objects here/listNearestFolderContents;
3 calTool nocall:here/portal_calendar;
4
5 commonIndexes python:calTool.getCommonIndexes(objects);
6 rSortBy request/sortBy|nothing ;
7 sortBy python:here.getOrSetSessionVar('sSortBy', rSortBy, 'modified');
8 sortBy python:sortBy in commonIndexes and sortBy or here.getOrSetSessionVar('sSortBy', len(commonIndexes) and list(commonIndexes)[0] or 'modified');
9
10 forceTab sortBy;
11 link_func python:lambda ob: ob.absolute_url();
12 isEventCalendar python:False;
13 ">
14 <html xmlns="http://www.w3.org/1999/xhtml"
15 metal:use-macro="here/main_template/macros/master">
16
17 <head>
18 <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
19 <title>Calendar View</title>
20 </head>
21
22 <body metal:fill-slot="main" tal:omit-tag="">
23 <div tal:define="objects objects|here/listNearestFolderContents ;
24 calTool calTool|nocall:here/portal_calendar ;
25
26 DateTime nocall:modules/DateTime/DateTime ;
27 buildDate nocall:calTool/buildDate ;
28
29 forceSortBy forceSortBy | nothing ;
30 sortBy python: forceSortBy and forceSortBy or sortBy ;
31 objects python:calTool.sortObjectsByDate(objects, sortBy) ;
32 indexIsCallable python:calTool.indexIsCallable(sortBy, objects) ;
33 now modules/DateTime/DateTime ;
34 ryear request/form/year|nothing ;
35 rmonth request/form/month|nothing ;
36 rday request/form/day|nothing ;
37 year python: here.getOrSetSessionVar('syear', ryear, now.year()) ;
38 month python: here.getOrSetSessionVar('smonth', rmonth, now.month()) ;
39 day python: here.getOrSetSessionVar('sday', rday, now.day()) ;
40 rdisplay request/form/display|nothing;
41 display python: here.getOrSetSessionVar('sdisplay', rdisplay, 'month') ;
42 display_macro here/calendar_macros/macros/?display ;
43 rrange_mode request/form/range_mode|nothing ;
44 range_mode python:here.getOrSetSessionVar('srange_mode', rrange_mode, 'fixed') ;"
45 metal:define-macro="calendar"
46 tal:omit-tag="">
47 <div metal:define-slot="calendar_display" tal:omit-tag="">
48 <div metal:use-macro="display_macro">
49 cal macro
50 </div>
51 </div>
52 </div>
53 </body>
54
55 </html>
56 </tal:block>