]> err.no Git - scalable-opengroupware.org/blob - SOGo/UI/Templates/UIxCalScheduleOverview.wox
50b7bdcd5326e8e9587f1f5a5c721dd0c7e2ec26
[scalable-opengroupware.org] / SOGo / UI / Templates / UIxCalScheduleOverview.wox
1 <?xml version='1.0' standalone='yes'?>
2
3 <var:component 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                className="UIxPageFrame"
9                title="name"
10 >
11   <var:if condition="canAccess" const:negate="YES">
12     <var:string label:value="Forbidden" />
13   </var:if>
14   <var:if condition="canAccess">
15     <table id="skywintable"
16            class="wintable"
17            cellspacing="0"
18            cellpadding="5"
19            width="100%"
20     >
21       <tr>
22         <td class="wintitle">
23           <table cellpadding="0" cellspacing="0" width="100%">
24             <tr>
25               <td width="5"/>
26               <td class="wintitle">
27                 <span class="window_label">
28                 <var:string label:value="Schedule"/>
29                 <var:string value="startDate" label:dateformat="dayLabelFormat" /> -
30                 <var:string value="endDate" label:dateformat="dayLabelFormat" />
31                 </span>
32               </td>
33               <td width="36" align="right" valign="center">
34                 <var:component className="UIxWinClose"/>
35               </td>
36             </tr>
37           </table>
38         </td>
39       </tr>
40       <tr>
41         <td id="skywinbodycell" class="wincontent">
42           <table border="0" width="100%" cellpadding="0" cellspacing="0">
43             <tr>
44               <td colspan="2">
45                 <var:component className="UIxCalSelectTab"
46                                const:selection="schedule"
47                                currentDate="selectedDate"
48                 >
49                   <var:if condition="hasAnyAppointments" const:negate="YES">
50                     <var:string label:value="No appointments found"
51                                 const:style="schedoverview"
52                     />
53                   </var:if>
54                   <var:if condition="hasAnyAppointments">
55                     <table border="0"
56                            width="100%"
57                            cellpadding="2"
58                            cellspacing="0"
59                            class="schedoverview"
60                     >
61                       <var:if condition="hasUserAppointments">
62                         <tr>
63                           <!-- meetings proposed by user -->
64                           <th colspan="5" class="schedoverview_title">
65                             <var:string label:value="Meetings proposed by you" />
66                           </th>
67                         </tr>
68                         <tr>
69                           <th class="schedoverview"
70                           ><var:string label:value="Start date" /></th>
71                           <th class="schedoverview"
72                           ><var:string label:value="Title" /></th>
73                           <th class="schedoverview"
74                               colspan="2"
75                           ><var:string label:value="participants"/></th>
76                         </tr>
77                         <var:foreach list="userAppointments"
78                                      item="item"
79                         >
80                           <var:foreach count="renderedParticipantsCount"
81                                        index="participantIndex"
82                           >
83                             <tr>
84                               <var:if condition="isFirstParticipant">  
85                                 <td class="schedoverview"
86                                     var:rowspan="rowspan"
87                                 >
88                                   <var:string value="item.startDate"
89                                               label:dateformat="sched_startDateFormat"
90                                   />
91                                 </td>
92                                 <td class="schedoverview"
93                                     var:rowspan="rowspan"
94                                 >
95                                   <a var:href="appointmentViewURL"
96                                      class="schedoverview"
97                                   ><var:string value="item.title"
98                                                const:escapeHTML="YES"
99                                    /></a>
100                                 </td>
101                               </var:if>
102                               <td class="schedoverview">
103                                 <var:string value="participant" />
104                               </td>
105                               <td class="schedoverview">
106                                 <var:component className="UIxCalParticipationStatusView"
107                                                partStat="participationStatus"
108                                 />
109                               </td>
110                             </tr>
111                           </var:foreach>
112                           <var:if condition="didTruncateParticipants">
113                             <tr>
114                               <td colspan="2" class="schedoverview">
115                                 <a var:href="appointmentViewURL"
116                                    class="schedoverview"
117                                 ><var:string value="truncatedParticipantsCount" />
118                                 <var:string label:value="more participants" />...
119                                 </a>
120                               </td>
121                             </tr>
122                           </var:if>
123                         </var:foreach>
124                       </var:if>
125
126                       <var:if condition="hasForeignAppointments">
127                         <var:if condition="hasUserAppointments">
128                           <tr>
129                             <td><var:entity const:name="nbsp" /></td>
130                           </tr>
131                         </var:if>
132                         <tr>
133                           <!-- meetings proposed to user -->
134                           <th colspan="5" class="schedoverview_title">
135                             <var:string label:value="Meetings proposed to you" />
136                           </th>
137                         </tr>
138                         <tr>
139                           <th class="schedoverview"
140                           ><var:string label:value="Start date" /></th>
141                           <th class="schedoverview"
142                           ><var:string label:value="Title" /></th>
143                           <th class="schedoverview"
144                               colspan="2"
145                           ><var:string label:value="participants" /></th>
146                           <th class="schedoverview"
147                           ><var:string label:value="action" /></th>
148                         </tr>
149                         <var:foreach list="foreignAppointments"
150                                      item="item"
151                         >
152                           <var:foreach count="renderedParticipantsCount"
153                                        index="participantIndex"
154                           >
155                             <tr>
156                               <var:if condition="isFirstParticipant">  
157                                 <td class="schedoverview"
158                                     var:rowspan="rowspan"
159                                 >
160                                   <var:string value="item.startDate"
161                                               label:dateformat="sched_startDateFormat"
162                                   />
163                                 </td>
164                                 <td class="schedoverview"
165                                     var:rowspan="rowspan"
166                                 >
167                                   <a var:href="appointmentViewURL"
168                                      class="schedoverview"
169                                   ><var:string value="item.title"
170                                                const:escapeHTML="YES"
171                                    /></a>
172                                 </td>
173                               </var:if>
174                               <td class="schedoverview">
175                                 <var:string value="participant" />
176                               </td>
177                               <td class="schedoverview">
178                                 <var:component className="UIxCalParticipationStatusView"
179                                                partStat="participationStatus"
180                                 />
181                               </td>
182                               <td class="schedoverview">
183                                 <var:if-key const:key="participantIndex"
184                                             value="userIndex"
185                                 >
186                                   <var:if-key const:key="userParticipationStatus"
187                                               const:value="1"
188                                               const:negate="YES"
189                                   >  
190                                     <a var:href="acceptAppointmentURL"
191                                        class="button_auto"
192                                     ><var:string label:value="accept" /></a>
193                                   </var:if-key>
194                                   <var:if-key const:key="userParticipationStatus"
195                                               const:value="2"
196                                               const:negate="YES"
197                                   >  
198                                     <a var:href="declineAppointmentURL"
199                                        class="button_auto"
200                                     ><var:string label:value="decline" /></a>
201                                   </var:if-key>
202                                 </var:if-key>
203                               </td>
204                             </tr>
205                           </var:foreach>
206                           <var:if condition="didTruncateParticipants">
207                             <tr>
208                               <td colspan="3" class="schedoverview">
209                                 <a var:href="appointmentViewURL"
210                                    class="schedoverview"
211                                 ><var:string value="truncatedParticipantsCount" />
212                                 <var:string label:value="more participants" />...
213                                 </a>
214                               </td>
215                             </tr>
216                           </var:if>
217                         </var:foreach>
218                       </var:if>
219                     </table>
220                   </var:if>
221                   <var:if condition="isUIxDebugEnabled">
222                     <p class="schedoverview">      
223                       workflow<br />
224                       ========<br />
225                       
226                       in fact, the workflow we wish to implement is :
227                       person A sets a meeting with B and C
228                       when he sets it, he clicks on a button : either "propose" or
229                       "propose and mail" (obvious)
230                       In both case, when B and C logs into SOGo, they see, in their
231                       'news page', that a new meeting has beeing proposed
232                       then by clicking on it, they can accept it
233                       on the news, you have to show : meetings proposed to the person
234                       logging in, meetings proposed BY the person logging in,
235                       and their different acceptance
236                       
237                       if you reject the meeting, it still appears in the news page
238                       as refused
239                       
240                       We have still two issues : ergonomic and functionnal
241                       
242                       The ergonomic one : I propose two sections in the news page,
243                       with each being a table, containing, each line, an apt,
244                       with title, day, hour, participants (truncated), the line
245                       being green if it has been accepted by all, red if rejected
246                       by someone
247                       grey if in another state
248                       
249                       the functionnal : a meeting that is still not accepted by
250                       everyone must appear in each participant's view, and be
251                       counted in the conflict manager, or not ?
252                       it's an open point
253                     </p>
254                   </var:if>
255                 </var:component>
256               </td>
257             </tr>
258             <tr bgcolor="#F5F5E9">
259               <td align="left" width="10">
260                 <var:entity const:name="nbsp"/>
261               </td>
262               <td align="right">
263                 <img border="0"
264                      alt=""
265                      src="/sogod.woa/so/ControlPanel/Products/CommonUI/Resources/corner_right.gif"
266                 />
267               </td>
268             </tr>
269             <tr>
270               <td colspan="2" bgcolor="#F5F5E9">
271                 <table border="0" width="100%" cellpadding="10" cellspacing="0">
272                   <tr/>
273                 </table>
274               </td>
275             </tr>
276           </table>
277         </td>
278       </tr>
279     </table>
280   </var:if>
281 </var:component>