On va essayer d'afficher le résultat de la XHR.
[Plinn.git] / skins / content / cal_calendar_view.pt
1 <html xmlns="http://www.w3.org/1999/xhtml"
2 metal:use-macro="here/main_template/macros/master">
3
4 <head>
5 <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
6 <title>View and edit calendar object</title>
7 </head>
8
9 <body i18n:domain="plinn">
10 <div metal:fill-slot="header" tal:define="hideContentByLine python:1">
11 <div metal:use-macro="here/widgets/macros/generic_header">generic_header</div>
12 </div>
13 <div metal:fill-slot="main" tal:omit-tag=""
14 tal:define="forceSortBy string:start;
15 rlink_mode request/form/link_mode|nothing;
16 link_mode python:here.getOrSetSessionVar('slink_mode', rlink_mode, 'view');
17 methodID python:link_mode == 'remove' and 'remove_object' or '';
18 link_func python:lambda ob : '%s/%s' % (ob.absolute_url(), methodID);
19 isEventCalendar python:True">
20 <div metal:use-macro="here/calendar_view/macros/calendar">
21 <div metal:fill-slot="calendar_display" tal:attributes="class link_mode">
22 <div metal:use-macro="display_macro">
23 <table metal:fill-slot="cal_header">
24 <tr>
25 <td><div metal:use-macro="here/calendar_macros/macros/calNavigation">calendar navigation</div></td>
26 <div tal:condition="python:mtool.checkPermission('Add portal content', here)" tal:omit-tag="">
27 <span tal:condition="python:here.getOrSetSessionVar('slink_mode') == 'view'" tal:omit-tag="">
28 <td style="vertical-align : middle">
29 <form tal:attributes="action string:${here/absolute_url}/add_event">
30 <input type="image" height="16" width="16" border="0" src="../images/new_event.gif"
31 alt="Add a new event..." title="Add a new event..." value="" style="margin-left : 30px"
32 tal:attributes="src here/new_event.gif/absolute_url"
33 i18n:attributes="alt;title" />
34 </form>
35 </td>
36 <td style="vertical-align : middle">
37 <a href="." title="Remove event..."
38 tal:attributes="href string:${request/URL0}?link_mode=remove"
39 i18n:attributes="title">
40 <img src="../images/remove_event.gif" height="16" width="16" border="0" alt="Remove event..."
41 tal:attributes="src here/remove_event.gif/absolute_url"
42 i18n:attributes="alt" />
43 </a>
44 </td>
45 </span>
46 <span tal:condition="python:here.getOrSetSessionVar('slink_mode') == 'remove'" tal:omit-tag="">
47 <td style="vertical-align : middle">
48 <img src="../images/warning.gif" alt="" height="25" width="25" border="0" tal:attributes="src here/warning.gif/absolute_url">
49 </td>
50 <td style="vertical-align : middle"><span i18n:translate="" tal:omit-tag="">The next click over an event will remove it!</span><br />
51 <a href="." tal:attributes="href string:${request/URL0}?link_mode=view"><span i18n:translate="" tal:omit-tag="">Cancel delete mode</span></a>
52 </td>
53 </span>
54 </div>
55 </tr>
56 </table>
57 </div>
58 </div>
59 </div>
60 </div>
61 </body>
62
63 </html>