]> err.no Git - scalable-opengroupware.org/blob - SOGo/UI/Templates/UIxCalScheduleOverview.wox
implemented homepage (almost done), removed 'schedule' tab
[scalable-opengroupware.org] / SOGo / UI / Templates / UIxCalScheduleOverview.wox
1 <?xml version='1.0' standalone='yes'?>
2
3 <span xmlns="http://www.w3.org/1999/xhtml"
4       xmlns:var="http://www.skyrix.com/od/binding"
5       xmlns:const="http://www.skyrix.com/od/constant"
6       xmlns:rsrc="OGo:url"
7       xmlns:label="OGo:label"
8 >
9   <table border="0"
10          width="100%"
11          cellpadding="2"
12          cellspacing="0"
13          class="schedoverview"
14   >
15     <tr>
16       <th colspan="5" class="schedoverview title">
17         <var:string label:value="Schedule"/>
18         <var:string value="startDate" label:dateformat="dayLabelFormat" /> -
19         <var:string value="endDate" label:dateformat="dayLabelFormat" />
20       </th>
21     </tr>
22     <var:if condition="hasAnyAppointments" const:negate="YES">
23       <tr>
24         <td colspan="5">
25           <var:string label:value="No appointments found"
26                       const:style="schedoverview"
27           />
28         </td>
29       </tr>
30     </var:if>
31     <var:if condition="hasAnyAppointments">
32       <var:if condition="hasUserAppointments">
33         <tr>
34           <!-- meetings proposed by user -->
35           <th colspan="5" class="schedoverview_title">
36             <var:string label:value="Meetings proposed by you" />
37           </th>
38         </tr>
39         <tr>
40           <th class="schedoverview"
41           ><var:string label:value="Start date" /></th>
42           <th class="schedoverview"
43           ><var:string label:value="Title" /></th>
44           <th class="schedoverview"
45               colspan="2"
46           ><var:string label:value="participants"/></th>
47         </tr>
48         <var:foreach list="userAppointments"
49                      item="item"
50         >
51           <var:foreach count="renderedParticipantsCount"
52                        index="participantIndex"
53           >
54             <tr>
55               <var:if condition="isFirstParticipant">  
56                 <td class="schedoverview"
57                     var:rowspan="rowspan"
58                 >
59                   <var:string value="item.startDate"
60                               label:dateformat="sched_startDateFormat"
61                   />
62                 </td>
63                 <td class="schedoverview"
64                     var:rowspan="rowspan"
65                 >
66                   <a var:href="appointmentViewURL"
67                      class="schedoverview"
68                   ><var:string value="item.title"
69                                const:escapeHTML="YES"
70                    /></a>
71                 </td>
72               </var:if>
73               <td class="schedoverview">
74                 <var:string value="participant" />
75               </td>
76               <td class="schedoverview">
77                 <var:component className="UIxCalParticipationStatusView"
78                                partStat="participationStatus"
79                 />
80               </td>
81             </tr>
82           </var:foreach>
83           <var:if condition="didTruncateParticipants">
84             <tr>
85               <td colspan="2" class="schedoverview">
86                 <a var:href="appointmentViewURL"
87                    class="schedoverview"
88                 ><var:string value="truncatedParticipantsCount" />
89                 <var:string label:value="more participants" />...
90                 </a>
91               </td>
92             </tr>
93           </var:if>
94         </var:foreach>
95       </var:if>
96       <var:if condition="hasForeignAppointments">
97         <var:if condition="hasUserAppointments">
98           <tr>
99             <td><var:entity const:name="nbsp" /></td>
100           </tr>
101         </var:if>
102         <tr>
103           <!-- meetings proposed to user -->
104           <th colspan="5" class="schedoverview_title">
105             <var:string label:value="Meetings proposed to you" />
106           </th>
107         </tr>
108         <tr>
109           <th class="schedoverview"
110           ><var:string label:value="Start date" /></th>
111           <th class="schedoverview"
112           ><var:string label:value="Title" /></th>
113           <th class="schedoverview"
114               colspan="2"
115           ><var:string label:value="participants" /></th>
116           <th class="schedoverview"
117           ><var:string label:value="action" /></th>
118         </tr>
119         <var:foreach list="foreignAppointments"
120                      item="item"
121         >
122           <var:foreach count="renderedParticipantsCount"
123                        index="participantIndex"
124           >
125             <tr>
126               <var:if condition="isFirstParticipant">  
127                 <td class="schedoverview"
128                     var:rowspan="rowspan"
129                 >
130                   <var:string value="item.startDate"
131                               label:dateformat="sched_startDateFormat"
132                   />
133                 </td>
134                 <td class="schedoverview"
135                     var:rowspan="rowspan"
136                 >
137                   <a var:href="appointmentViewURL"
138                      class="schedoverview"
139                   ><var:string value="item.title"
140                                const:escapeHTML="YES"
141                    /></a>
142                 </td>
143               </var:if>
144               <td class="schedoverview">
145                 <var:string value="participant" />
146               </td>
147               <td class="schedoverview">
148                 <var:component className="UIxCalParticipationStatusView"
149                                partStat="participationStatus"
150                 />
151               </td>
152               <td class="schedoverview">
153                 <var:if-key const:key="participantIndex"
154                             value="userIndex"
155                 >
156                   <var:if-key const:key="userParticipationStatus"
157                               const:value="1"
158                               const:negate="YES"
159                   >  
160                     <a var:href="acceptAppointmentURL"
161                        class="button_auto"
162                     ><var:string label:value="accept" /></a>
163                   </var:if-key>
164                   <var:if-key const:key="userParticipationStatus"
165                               const:value="2"
166                               const:negate="YES"
167                   >  
168                     <a var:href="declineAppointmentURL"
169                        class="button_auto"
170                     ><var:string label:value="decline" /></a>
171                   </var:if-key>
172                 </var:if-key>
173               </td>
174             </tr>
175           </var:foreach>
176           <var:if condition="didTruncateParticipants">
177             <tr>
178               <td colspan="3" class="schedoverview">
179                 <a var:href="appointmentViewURL"
180                    class="schedoverview"
181                 ><var:string value="truncatedParticipantsCount" />
182                 <var:string label:value="more participants" />...
183                 </a>
184               </td>
185             </tr>
186           </var:if>
187         </var:foreach>
188       </var:if>
189     </var:if>
190   </table>
191 </span>