]> err.no Git - scalable-opengroupware.org/blob - UI/Templates/UIxAppointmentEditor.wox
git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1004 d1b88da0-ebda-0310...
[scalable-opengroupware.org] / UI / Templates / UIxAppointmentEditor.wox
1 <?xml version='1.0' standalone='yes'?>
2 <var:component
3   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:uix="OGo:uix"
7   xmlns:label="OGo:label"
8   className="UIxPageFrame"
9   title="name"
10 >
11   <var:js-stringtable const:framework="SchedulerUI.SOGo"
12                       const:identifier="labels" />
13   
14   <form var:href="clientObject.baseURL" name="editform"
15         onsubmit="return validateAptEditor()">
16
17       <script language="JavaScript"> <!-- TODO: use a resource -->
18         <var:string value="jsCode" const:escapeHTML="NO" />
19       </script>
20
21       <table cellspacing="0" cellpadding="5" width="100%">
22         <tr>
23           <td>
24             <table cellpadding="0" cellspacing="0" width="100%">
25               <tr>
26                 <td width="5"/>
27                 <td class="window_label">
28                   <var:string label:value="Appointment editor" /></td>
29                 <td width="36" align="right" valign="center">
30                   <var:component className="UIxWinClose" />
31                 </td>
32               </tr>
33             </table>
34           </td>
35         </tr>
36         <tr>
37           <td>
38             <var:if condition="hasErrorText">
39               <div style="background-color: #AA0000;">
40                 <var:string value="errorText" />
41               </div>
42               <hr />
43             </var:if>
44
45             <table border="0" cellpadding="2" cellspacing="0" width="100%"
46                    bgcolor="#e8e8e0"
47             >
48               <tr>
49                 <td align="left" colspan="2">
50                   <span class="aptview_title">
51                     <var:string label:value="Appointment on" /> 
52                     <var:string formatter="titleDateFormatter" 
53                                 value="aptStartDate" /></span>
54                 </td>
55               </tr>
56               <tr valign="top">
57                 <td align="right" width="15%">
58                   <span class="aptview_text">
59                     <var:string label:value="Start time" />:
60                   </span>
61                 </td>
62                 <td align="left" bgcolor="#FFFFF0">
63                   <span class="aptview_text">
64                     <var:component className="UIxDatePickerScript" />
65                     <var:component className="UIxTimeDateControl"
66                                    const:controlID="startTime"
67                                    date="aptStartDate"
68                     />
69                   </span>
70                 </td>
71               </tr>
72               <tr valign="top">
73                 <td align="right" width="15%">
74                   <span class="aptview_text">
75                     <var:string label:value="End time" />:
76                   </span>
77                 </td>
78                 <td align="left" bgcolor="#FFFFF0">
79                   <span class="aptview_text">
80                     <var:component className="UIxTimeDateControl"
81                                    const:controlID="endTime"
82                                    date="aptEndDate"
83                     />
84                   </span>
85                 </td>
86               </tr>
87               <tr valign="top">
88                 <td align="right" width="15%">
89                   <span class="aptview_text">
90                     <var:string label:value="Title" />:
91                   </span>
92                 </td>
93                 <td align="left" bgcolor="#FFFFF0">
94                   <span class="aptview_text">
95                     <input type="text" name="summary" id="summary"
96                            const:size="40" var:value="title" />
97                   </span>
98                 </td>
99               </tr>
100               <tr valign="top">
101                 <td align="right" width="15%">
102                   <span class="aptview_text">
103                     <var:string label:value="Location" />:
104                   </span>
105                 </td>
106                 <td align="left" bgcolor="#FFFFF0">
107                   <span class="aptview_text">
108                     <input type="text" name="location" const:size="40"
109                            var:value="location" />
110                   </span>
111                 </td>
112               </tr>
113               <tr valign="top">
114                 <td align="right" width="15%">
115                   <span class="aptview_text">
116                     <var:string label:value="Priority" />:
117                   </span>
118                 </td>
119                 <td align="left" bgcolor="#FFFFF0">
120                   <span class="aptview_text">
121                     <var:popup list="priorities" item="item"
122                                string="itemPriorityText" selection="priority"/>
123                   </span>
124                 </td>
125               </tr>
126               <tr valign="top">
127                 <td align="right" width="15%">
128                   <span class="aptview_text">
129                     <var:string label:value="Cycle" />:
130                   </span>
131                 </td>
132                 <td align="left" bgcolor="#FFFFF0">
133                   <span class="aptview_text">
134                     <table>
135                       <tr>
136                         <td>
137                           <var:popup list="cycles" item="item"
138                                      label:string="$cycleLabel"
139                                      selection="cycle"
140                                      const:onChange="selectHasCycle(this);"
141                           />
142                         </td>
143                         <td id="cycle_end_label"
144                             var:style="initialCycleVisibility"
145                         ><var:string label:value="Cycle End"
146                                         const:style="aptview_text"
147                             />:</td>
148                         <td id="cycle_end_mode"
149                             var:style="initialCycleVisibility"
150                         >
151                           <var:popup list="cycleEnds" item="item"
152                                      label:string="$item" value="item"
153                                      selection="cycleEnd"
154                                      const:onChange="selectCycleEnd(this);"
155                                      const:id="cycle_end_mode_selection"
156                           />
157                         </td>
158                         <td id="cycle_end_until"
159                             var:style="initialCycleEndUntilVisibility"
160                         >
161                           <var:component className="UIxTimeDateControl"
162                                          date="cycleUntilDate"
163                                          label="foo"
164                                          const:controlID="cycleUntilDate"
165                                          const:displayTimeControl="NO"
166                           />
167                         </td>
168                       </tr>
169                     </table>
170                   </span>
171                 </td>
172               </tr>
173               <tr valign="top">
174                 <td align="right" width="15%">
175                   <span class="aptview_text">
176                     <var:string label:value="Categories" />:
177                   </span>
178                 </td>
179                 <td align="left" bgcolor="#FFFFF0">
180                   <span class="aptview_text">
181                     <var:checkbox-list list="categoryItems" item="item"
182                                        suffix="itemCategoryText"
183                                        selections="categories"
184                     />
185                   </span>
186                 </td>
187               </tr>
188               <tr valign="top">
189                 <td align="right" width="15%">
190                   <span class="aptview_text">
191                     <var:string label:value="Classification" />:
192                   </span>
193                 </td>
194                 <td align="left" bgcolor="#FFFFF0">
195                   <span class="aptview_text">
196                     <input type="checkbox" var:selection="isPrivate"
197                            var:checked="isPrivate" />
198                     <var:string label:value="is private" />
199                   </span>
200                 </td>
201               </tr>
202             </table>
203           </td>
204         </tr>
205         <tr>
206           <td>
207             <table border="0" cellpadding="2" cellspacing="0"
208                    width="100%" bgcolor="#e8e8e0"
209             >
210               <tr>
211                 <td align="left" colspan="2">
212                   <span class="aptview_title">
213                     <var:string label:value="Search participants" /> 
214                   </span>
215                 </td>
216               </tr>
217               <tr valign="top">
218                 <td align="right" width="15%">
219                   <span class="aptview_text">
220                     <var:string label:value="Participants" />:</span>
221                 </td>
222                 <td align="left" bgcolor="#FFFFF0">
223                   <span class="aptview_text">
224                     <!-- use '1' instead of 'YES', otherwise breaks on OSX -->
225 <!--
226                     <var:component className="AnaisAttendeeSelector"
227                                    const:selectorID="participant"
228                                    const:role="REQ-PARTICIPANT"
229                                    attendees="participants"
230                                    var:emailForUser="emailForUser"
231                                    var:cnForUser="cnForUser"
232                                    const:withCN="1"
233                                    const:withAddressBook="1"
234                     />
235 -->
236                     TODO: need attendee selector (AB)
237                   </span>
238                 </td>
239               </tr>
240             </table>
241           </td>
242         </tr>
243         <tr>
244           <td>
245             <table border="0" cellpadding="2" cellspacing="0" width="100%"
246                    bgcolor="#e8e8e0"
247             >
248               <tr>
249                 <td align="left" colspan="2">
250                   <span class="aptview_title">
251                     <var:string label:value="Search resources" />
252                   </span>
253                 </td>
254               </tr>
255               <tr valign="top">
256                 <td align="right" width="15%">
257                   <span class="aptview_text">
258                     <var:string label:value="Resources" />:
259                   </span>
260                 </td>
261                 <td align="left" bgcolor="#FFFFF0">
262                   <span class="aptview_text">
263 <!--
264                     <var:component className="AnaisAttendeeSelector"
265                                    const:selectorID="resource"
266                                    const:role="NON-PARTICIPANT"
267                                    attendees="resources"
268                                    const:withCN="YES"
269                                    const:withAddressBook="YES"
270                     />
271 -->
272                     TODO: need attendee selector (AB)
273                   </span>
274                 </td>
275               </tr>
276             </table>
277           </td>
278         </tr>
279         <tr>
280           <td>
281             <table border="0" cellpadding="2" cellspacing="0" width="100%"
282                    bgcolor="#e8e8e0"
283             >
284               <tr>
285                 <td align="left" colspan="2">
286                   <span class="aptview_title">
287                     <var:string label:value="Comment" />
288                   </span>
289                 </td>
290               </tr>
291               <tr valign="top">
292                 <td align="right" width="15%">
293                   <span class="aptview_text">
294                     <var:string label:value="Comment" />:
295                   </span>
296                 </td>
297                 <td align="left" bgcolor="#FFFFF0">
298                   <span class="aptview_text">
299                     <textarea name="comment" rows="8" cols="80" wrap="physical"
300                               var:value="comment" />
301                   </span>
302                 </td>
303               </tr>
304             </table>
305           </td>
306         </tr>
307         <tr valign="top">
308           <td>
309             <span class="aptview_text">
310               <input type="checkbox"
311                      var:selection="checkForConflicts"
312                      var:checked="checkForConflicts"
313               /> <var:string label:value="check for conflicts" />
314             </span>
315           </td>
316         </tr>
317         <tr>
318           <td>
319               <input type="submit" label:value="Save" name="save:method" />
320               <span class="button_auto_env"
321               ><a href="../weekoverview"
322                   var:queryDictionary="queryParameters"
323                   class="button_auto"
324                ><var:string label:value="Cancel" /></a></span>
325               <var:if condition="isUIxDebugEnabled">
326                 <input type="submit" value="Test" name="test:method" />
327               </var:if>
328           </td>
329         </tr>
330       </table>
331     <input type="hidden" name="ical" var:value="iCalString" />
332   </form>
333   <!--
334   <var:if condition="canEditApt" const:negate="YES">
335     Forbidden ... <var:redirect const:setURL="view" />
336   </var:if>
337   -->
338 </var:component>