Debian Codegraph @

dojox/calendar/tests/columnview_rtl.html

raw symbols SCIP
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd">
3 <html>
4
5 <head>
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
7 <title>ColumnView Sample: Desktop</title>
8 <style type="text/css">
9 @import "../themes/claro/ColumnView.css";
10 @import "../themes/claro/MatrixView.css";
11 @import "columnview.css";
12 @import "../themes/claro/ColumnView_rtl.css";
13 @import "../themes/claro/MatrixView_rtl.css";
14 @import "columnview_rtl.css";
15 @import "../../../dojo/resources/dojo.css";
16 @import "../../../dijit/themes/dijit.css";
17 @import "../../../dijit/themes/claro/claro.css";
18 </style>
19 </head>
20
21 <body class="claro" dir="rtl">
22 <script type="text/javascript"
23 data-dojo-config="async: true, parseOnLoad: true"
24 src="../../../dojo/dojo.js"></script>
25
26 <script type="text/javascript">
27
28 require(["dojo/ready", "dojo/_base/declare", "dojo/_base/fx", "dojo/on", "dojo/date/locale", "dojo/parser", "dojo/date", "dojo/_base/lang",
29 "dojo/dom", "dojo/dom-construct", "dojo/dom-class", "dojo/_base/window",
30 "dijit/registry", "dojo/query", "dojox/calendar/ColumnView", "dojox/calendar/ColumnViewSecondarySheet", "dojox/calendar/Keyboard", "dojox/calendar/Mouse",
31 "dojox/calendar/VerticalRenderer", "dojox/calendar/HorizontalRenderer", "dojox/calendar/ExpandRenderer", "dojo/store/Memory", "dojo/store/Observable",
32 "dijit/form/VerticalSlider", "dijit/form/NumberSpinner",
33 "dijit/form/ComboBox", "dijit/form/DateTextBox", "dijit/form/TimeTextBox", "dijit/form/TextBox",
34 "dijit/form/Button", "dijit/TitlePane", "dijit/Tooltip",
35 "dijit/form/CheckBox", "dijit/_BidiSupport"],
36
37 function(ready, declare, fx,on, locale, parser, date, lang, dom, domConstruct, domClass, win, registry, query,
38 ColumnView, ColumnViewSecondarySheet, CalendarKeyboard, CalendarMouse, VerticalRenderer, HorizontalRenderer, ExpandRenderer, Memory, Observable, VerticalSlider,
39 NumberSpinner, ComboBox, DateTextBox, TimeTextBox, TextBox, Button, TitlePane, Tooltip, CheckBox){
40
41 ready(function(){
42
43 // singleton
44 win.doc.appState = {
45 moveDisabledMap: {},
46 resizeDisabledMap: {}
47 };
48
49 var mergeDateTime = function(isStart){
50 var dateEditor = isStart ? itemStartDateEditor : itemEndDateEditor;
51 var timeEditor = isStart ? itemStartTimeEditor : itemEndTimeEditor;
52 var date = dateEditor.get("value");
53 var time = timeEditor.get("value");
54 date.setHours(time.getHours());
55 date.setMinutes(time.getMinutes());
56 return date;
57 };
58
59 var addLogEntry = function(name, content){
60 var tr = domConstruct.create("tr", null, dom.byId("logBody"), "first");
61 var td = domConstruct.create("td", null, tr);
62 td.appendChild(win.doc.createTextNode(locale.format(new Date(), {selector:"time", timePattern:"h:mm:ss"})));
63 var td = domConstruct.create("td", null, tr);
64 td.appendChild(win.doc.createTextNode(name));
65 td = domConstruct.create("td", null, tr);
66 td.appendChild(win.doc.createTextNode(content));
67 };
68 // Calendar model creation
69
70 var dateClassObj = Date;
71
72 var modelBase = [
73 {day: 1, start: [10,0], duration: 1400},
74 {day: 2, start: [10,30], duration: 120},
75 {day: 2, start: [12,0], duration: 240},
76 {day: 3, start: [6,0], duration: 180},
77 {day: 3, start: [0,0], duration: 2880, allDay: true}
78 ];
79
80 // TODO manage first day of week
81 var floorToWeek= function(d){
82 d.setHours(0);
83 d.setMinutes(0);
84 d.setSeconds(0);
85 d.setMilliseconds(0);
86 d = date.add(d, "day", -d.getDay());
87 return d;
88 };
89
90 var someData = [];
91
92 var startOfWeek = new dateClassObj();
93 startOfWeek = floorToWeek(startOfWeek);
94
95 startDateEditor.set("value", startOfWeek);
96
97 for (var id=0; id<modelBase.length; id++) {
98 var newObj = {
99 id: id,
100 summary: "New Event " + id,
101 startTime: new dateClassObj(startOfWeek.getTime()),
102 endTime: new dateClassObj(startOfWeek.getTime()),
103 calendar: id%2 == 0 ? "cal1" : "cal2",
104 allDay: modelBase[id].allDay
105 };
106
107 newObj.startTime = date.add(newObj.startTime, "day", modelBase[id].day);
108 newObj.startTime.setHours(modelBase[id].start[0]);
109 newObj.startTime.setMinutes(modelBase[id].start[1]);
110
111 newObj.endTime = date.add(newObj.startTime, "minute", modelBase[id].duration);
112
113 someData.push(newObj);
114 }
115
116 var subColumnsLabels = {
117 "cal1": "Calendar 1",
118 "cal2": "Calendar 2"
119 };
120
121
122 // Calendar creation & configuration
123
124 var secondarySheetClass = declare([ColumnViewSecondarySheet, CalendarKeyboard, CalendarMouse]);
125
126 colView = declare([ColumnView, CalendarKeyboard, CalendarMouse])({
127 store: new Observable(new Memory({data: someData})),
128 subColumns: ["cal1", "cal2"],
129 subColumnLabelFunc: function(v){
130 return subColumnsLabels[v];
131 },
132 secondarySheetClass: secondarySheetClass,
133 secondarySheetArgs: {
134 horizontalRendererHeight: 18
135 },
136 verticalRenderer: VerticalRenderer,
137 horizontalRenderer: HorizontalRenderer,
138 expandRenderer: ExpandRenderer,
139 cssClassFunc: function(item){
140 return item.calendar == "cal1" ? "Calendar1" : "Calendar2"
141 },
142 isItemMoveEnabled: function(item, kind){
143 return this.isItemEditable(item, kind) && win.doc.appState.moveDisabledMap[item.id] !== true;
144 },
145 isItemResizeEnabled: function(item, kind){
146 return this.isItemEditable(item, kind) && win.doc.appState.resizeDisabledMap[item.id] !== true;
147 }
148 }, "calendarNode");
149
150 // Events management
151
152
153 // Enable creation of event interactively by ctrl clicking grid.
154 var createItem = function(view, d, e, subColumn){
155
156 // create item by maintaining control key
157 if(!e.ctrlKey || e.shiftKey || e.altKey){
158 return null;
159 }
160
161 // create a new event
162 var start, end;
163 var cal = colView.dateModule;
164
165 start = colView.floorDate(d, "minute", colView.timeSlotDuration);
166 end = cal.add(start, "minute", colView.timeSlotDuration);
167
168 var item = {
169 id: id,
170 summary: "New event " + id,
171 startTime: start,
172 endTime: end,
173 calendar: subColumn,
174 allDay: view.viewKind == "matrix"
175 };
176
177 id++;
178
179 return item;
180 };
181
182 colView.set("createOnGridClick", true);
183 colView.set("createItemFunc", createItem);
184
185 var startDateSave;
186 var columnCountSave;
187
188 colView.on("columnHeaderClick", function(e){
189 if (colView.get("columnCount") == 1) {
190 colView.set("startDate", startDateSave);
191 colView.set("columnCount", columnCountSave);
192 } else {
193 startDateSave = colView.get("startDate");
194 columnCountSave = colView.get("columnCount");
195 colView.set("startDate", e.date);
196 colView.set("columnCount", 1);
197 }
198 });
199
200 var onColViewChange = function(item){
201 if (item == null){
202
203 editedItem = null;
204
205 itemSummaryEditor.set("value", null);
206 itemSummaryEditor.set("disabled", true);
207
208 itemStartDateEditor.set("value", null);
209 itemStartDateEditor.set("disabled", true);
210
211 itemStartTimeEditor.set("value", null);
212 itemStartTimeEditor.set("disabled", true);
213
214 itemEndDateEditor.set("value", null);
215 itemEndDateEditor.set("disabled", true);
216
217 itemEndTimeEditor.set("value", null);
218 itemEndTimeEditor.set("disabled", true);
219
220 updateItemButton.set("disabled", true);
221
222 allDayCB.set("disabled", true);
223 allDayCB.set("checked", false, false);
224
225 resizeEnabledCB.set("disabled", true);
226 resizeEnabledCB.set("checked", false);
227
228 moveEnabledCB.set("disabled", true);
229 moveEnabledCB.set("checked", false);
230
231 calendarEditor.set("disabled", true);
232
233
234 }else{
235 // work on a copy
236 editedItem = lang.mixin({}, item);
237
238 var allDay = item.allDay === true;
239
240 itemSummaryEditor.set("value", item.summary);
241 itemSummaryEditor.set("disabled", false);
242
243 itemStartDateEditor.set("value", item.startTime);
244 itemStartDateEditor.set("disabled", false);
245
246 itemStartTimeEditor.set("value", item.startTime);
247 itemStartTimeEditor.set("disabled", allDay);
248
249 itemEndDateEditor.set("value", item.endTime);
250 itemEndDateEditor.set("disabled", false);
251
252 itemEndTimeEditor.set("value", item.endTime);
253 itemEndTimeEditor.set("disabled", allDay);
254
255 calendarEditor.set("value", item.calendar == "cal1" ? "Calendar 1" : "Calendar 2");
256
257 updateItemButton.set("disabled", false);
258 calendarEditor.set("disabled", false);
259
260 allDayCB.set("disabled", false);
261 allDayCB.set("checked", allDay, false);
262
263 resizeEnabledCB.set("disabled", false);
264 resizeEnabledCB.set("checked", win.doc.appState.resizeDisabledMap[item.id] !== true);
265
266 moveEnabledCB.set("disabled", false);
267 moveEnabledCB.set("checked", win.doc.appState.moveDisabledMap[item.id] !== true);
268 }
269
270 var res = "";
271 if(item == null){
272 res = null;
273 }else{
274 var list = colView.get("selectedItems");
275 for(var i=0; i<list.length; i++){
276 res += list[i].summary;
277 if(i != list.length-1){
278 res += ", ";
279 }
280 }
281 }
282 addLogEntry("onChange", res);
283 };
284
285 allDayCB.on("change", function(value){
286
287 itemStartTimeEditor.set("disabled", value);
288 itemEndTimeEditor.set("disabled", value);
289 var d;
290 if(value){
291 d = itemStartTimeEditor.get("value");
292 colView.floorToDay(d, true);
293 itemStartTimeEditor.set("value", d);
294 d = itemEndTimeEditor.get("value");
295 colView.floorToDay(d, true);
296 itemEndTimeEditor.set("value", d);
297
298 if(!colView.isStartOfDay(editedItem.endTime)){
299 d = itemEndDateEditor.get("value");
300 colView.floorToDay(d, true);
301 d = colView.renderData.dateModule.add(d, "day", 1);
302 itemEndDateEditor.set("value", d);
303 }
304
305 }else{
306 editedItem.startTime.setHours(8);
307 editedItem.endTime.setHours(9);
308 itemStartTimeEditor.set("value", editedItem.startTime);
309 itemEndTimeEditor.set("value", editedItem.endTime);
310 d = itemEndDateEditor.get("value");
311 colView.floorToDay(d, true);
312 d = colView.renderData.dateModule.add(d, "day", -1);
313 itemEndDateEditor.set("value", d);
314 }
315
316 });
317
318 colView.on("change", function(e){
319 onColViewChange(e.newValue);
320 });
321
322 startDateEditor.on("change", function(value){
323 colView.set("startDate", value);
324 });
325
326 var editedItem;
327
328 updateItemButton.on("click", function(value){
329
330 if (editedItem != null) {
331 editedItem.summary = itemSummaryEditor.get("value");
332 if(allDayCB.get("value")){
333 if(!colView.isStartOfDay(editedItem.startTime)){
334 editedItem.startTime = colView.floorToDay(itemStartDateEditor.get("value"), true);
335 }
336 if(!colView.isStartOfDay(editedItem.endTime)){
337 editedItem.endTime = colView.floorToDay(itemEndDateEditor.get("value"), true);
338 }
339 editedItem.allDay = true;
340 }else{
341 editedItem.startTime = mergeDateTime(true);
342 editedItem.endTime = mergeDateTime(false);
343 delete editedItem.allDay;
344 }
345
346 var calValue = calendarEditor.get("value");
347 editedItem.calendar = calValue == "Calendar 1" ? "cal1" : "cal2";
348 colView.store.put(editedItem);
349 }
350
351 });
352
353 dateFormatButton.on("click", function(value){
354 colView.set("rowHeaderTimePattern", rowHeaderFormatEditor.value);
355 colView.set("columnHeaderDatePattern", columnHeaderFormatEditor.value);
356 });
357
358 colView.on("itemClick", function(e){
359 addLogEntry("onItemClick", e.item.summary);
360 });
361 colView.on("itemDoubleClick", function(e){
362 addLogEntry("onItemDoubleClick", e.item.summary);
363 });
364 colView.on("gridClick", function(e){
365 addLogEntry("onGridClick", locale.format(e.date, {datePattern:"yyyy/MM/dd", timePattern:"h:mm"}));
366 });
367 colView.on("gridDoubleClick", function(e){
368 addLogEntry("onGridDoubleClick", locale.format(e.date, {datePattern:"yyyy/MM/dd", timePattern:"h:mm"}));
369 });
370
371
372 colView.on("itemRollOut", function(e){
373 addLogEntry("onItemRollOut", e.item.summary);
374 });
375
376 var getItemLabel = function(item){
377 return "<b>" + item.summary + "</b><br/><table><tr><td style='text-align:right'>" +
378 "Start:</td><td>" + colView.renderData.dateLocaleModule.format(item.startTime, {formatLength: "medium"}) + "</td></tr><tr><td style='text-align:right'>" +
379 "End:</td><td>" + colView.renderData.dateLocaleModule.format(item.endTime, {formatLength: "medium"}) + "</td></tr></table>";
380 };
381
382 colView.on("focusChange", function(e){
383 addLogEntry("focusChange", e.item ? e.item.summary: "null");
384 });
385
386 colView.on("itemRollOver", function(e){
387 addLogEntry("onItemRollOver", e.item.summary);
388 });
389
390 colView.on("itemEditBegin", function(e){
391 addLogEntry("onItemEditBegin", e.item.summary);
392 });
393
394 colView.on("itemEditBeginGesture", function(e){
395 addLogEntry("onItemEditBeginGesture", e.editKind + ", " + e.item.summary);
396 });
397
398 colView.on("itemEditEndGesture", function(e){
399 addLogEntry("onItemEditEndGesture", e.editKind + ", " + e.item.summary);
400 onColViewChange(e.item);
401 });
402
403
404 colView.on("itemEditEnd", function(e){
405 addLogEntry("onItemEditEnd", e.item.summary + ", completed:" + e.completed);
406 });
407
408 editableCB.on("change", function(value){
409 colView.set("editable", value);
410 });
411
412 keyEditableCB.on("change", function(value){
413 colView.set("keyboardEditable", value);
414 });
415
416 liveEditCB.on("change", function(value){
417 colView.liveLayout = value;
418 });
419
420 allowSwapCB.on("change", function(value){
421 colView.allowStartEndSwap = value;
422 });
423
424 viewConstrainCB.on("change", function(value){
425 colView.stayInView = value;
426 });
427
428 resizeEnabledCB.watch("disabled", function(oldV, newV){
429 if (newV){
430 domClass.remove("resizeEnabledCBLabel", "disabled");
431 }else{
432 domClass.add("resizeEnabledCBLabel", "disabled");
433 }
434 });
435
436 moveEnabledCB.watch("disabled", function(oldV, newV){
437 if (newV){
438 domClass.remove("moveEnabledCBLabel", "disabled");
439 }else{
440 domClass.add("moveEnabledCBLabel", "disabled");
441 }
442 });
443
444 resizeEnabledCB.on("change", function(value){
445 if (colView.selectedItem) {
446 if (value){
447 delete win.doc.appState.resizeDisabledMap[colView.selectedItem.id]
448 } else {
449 win.doc.appState.resizeDisabledMap[colView.selectedItem.id] = true;
450 }
451 }
452 });
453
454 moveEnabledCB.on("change", function(value){
455 if (colView.selectedItem) {
456 if (value){
457 delete win.doc.appState.moveDisabledMap[colView.selectedItem.id]
458 } else {
459 win.doc.appState.moveDisabledMap[colView.selectedItem.id] = true;
460 }
461 }
462 });
463
464 allowReassignCB.on("change", function(value){
465 colView.set("allowSubColumnMove", value);
466 });
467
468
469 subColumnsCB.on("change", function(value){
470 colView.set("subColumns", value ? ["cal1", "cal2"] : null);
471 });
472
473 overlapEditor.on("change", function(value){
474 colView.set('percentOverlap', this.value);
475 hGapEditor.set("disabled", value!=0)
476 });
477
478 window.onresize = function(){
479 colView.resize();
480 }
481
482 fx.fadeOut({
483 node:"loadingPanel",
484 onEnd: function(node){
485 node.parentNode.removeChild(node)
486 }}).play(500);
487
488 });
489 });
490 </script>
491
492 <div id="loadingPanel" style="position:absolute;z-index:10;width:100%;height:100%;background:#ffffff">
493 <span style="background: #DBEB8F;padding:2px">Loading...</span>
494 </div>
495
496 <div id="formDiv">
497
498 <div data-dojo-type="dijit.TitlePane" title="Date Interval" class="formPanel">
499 <table class="formTable">
500 <tr>
501 <td>Start date:</td>
502 <td><div data-dojo-id="startDateEditor" data-dojo-type="dijit.form.DateTextBox" style="width:80px"></div></td>
503 </tr>
504
505 <tr>
506 <td>Column count:</td>
507 <td><div data-dojo-id="columnCountEditor" data-dojo-type="dijit.form.NumberSpinner" style="width:80px" data-dojo-props="constraints:{min:1, max:14}, value:7, intermediateChanges:true" onChange="colView.set('columnCount', this.value);"></div></td>
508 </tr>
509 </table>
510 </div>
511
512 <div data-dojo-type="dijit.TitlePane" title="Main Properties" class="formPanel">
513 <table class="formTable">
514
515 <tr>
516 <td>Min hours:</td>
517 <td><div data-dojo-id="minHoursEditor" data-dojo-type="dijit.form.NumberSpinner" style="width:80px" value="8" data-dojo-props="constraints:{min:0, max:24}, intermediateChanges:true" onChange="colView.set('minHours', this.value);"></div></td>
518 </tr>
519
520 <tr>
521 <td>Max Hours:</td>
522 <td><div data-dojo-id="maxHoursEditor" data-dojo-type="dijit.form.NumberSpinner" style="width:80px" value="18" data-dojo-props="constraints:{min:0, max:24}, intermediateChanges:true" onChange="colView.set('maxHours', this.value);"></div></td>
523 </tr>
524
525 <tr>
526 <td>Hour size(px):</td>
527 <td><div data-dojo-id="hourSizeEditor" data-dojo-type="dijit.form.NumberSpinner" style="width:80px" value="100" data-dojo-props="constraints:{min:0, max:500}, intermediateChanges:true, smallDelta:25" onChange="colView.set('hourSize', this.value);"></div></td>
528 </tr>
529
530 <tr>
531 <td>Timeslot (minutes):</td>
532 <td>
533 <select data-dojo-id="timeSlotEditor" data-dojo-type="dijit.form.ComboBox" style="width:80px;" onChange="colView.set('timeSlotDuration', this.value);">
534 <option value="15" selected>15</option>
535 <option value="30">30</option>
536 <option value="60">60</option>
537 </select>
538 </td>
539 </tr>
540
541 <tr>
542 <td>Row Grid Timeslot:</td>
543 <td>
544 <select data-dojo-id="rhgtimeSlotEditor" data-dojo-type="dijit.form.ComboBox" style="width:80px;" onChange="colView.set('rowHeaderGridSlotDuration', this.value);">
545 <option value="15">15</option>
546 <option value="30">30</option>
547 <option value="60" selected>60</option>
548 </select>
549 </td>
550 </tr>
551
552 <tr>
553 <td>Row Label Timeslot:</td>
554 <td>
555 <select data-dojo-id="rhltimeSlotEditor" data-dojo-type="dijit.form.ComboBox" style="width:80px;" onChange="colView.set('rowHeaderLabelSlotDuration', this.value);">
556 <option value="15">15</option>
557 <option value="30">30</option>
558 <option value="60" selected>60</option>
559 </select>
560 </td>
561 </tr>
562
563 <tr>
564 <td>Row Label offset:</td>
565 <td><div data-dojo-id="rhoEditor" data-dojo-type="dijit.form.NumberSpinner" style="width:80px" value="2" data-dojo-props="constraints:{min:-20, max:20}, intermediateChanges:true" onChange="colView.set('rowHeaderLabelOffset', this.value);"></div></td>
566 </tr>
567
568
569 <tr>
570 <td>Overlap (%):</td>
571 <td><div data-dojo-id="overlapEditor" data-dojo-type="dijit.form.NumberSpinner" data-dojo-props="value:70, constraints:{min:0, max:100}, intermediateChanges:true, smallDelta:10" style="width:80px"></div></td>
572 </tr>
573
574 <tr>
575 <td>Horizontal gap (px):</td>
576 <td><div data-dojo-id="hGapEditor" data-dojo-type="dijit.form.NumberSpinner" style="width:80px" data-dojo-props="constraints:{min:0, max:30}, value:2, intermediateChanges:true, disabled:true" onChange="colView.set('horizontalGap', this.value);"></div></td>
577 </tr>
578
579 <tr>
580 <td>Start time of day (h):</td>
581 <td><div data-dojo-id="startTimeOfDayEditor" data-dojo-type="dijit.form.NumberSpinner" data-dojo-props="value:8, constraints:{min:0, max:24}, intermediateChanges:true, smallDelta:1" style="width:80px" onChange="colView.set('startTimeOfDay', {hours: this.value, duration: 250});"></div></td>
582 </tr>
583
584 <tr>
585 <td>Selection mode:</td>
586 <td>
587 <select data-dojo-id="selectionModeEditor" data-dojo-type="dijit.form.ComboBox" style="width:80px;" onChange="colView.set('selectionMode', this.value);">
588 <option>none</option>
589 <option selected>single</option>
590 <option>multiple</option>
591 </select>
592 </td>
593 </tr>
594 <tr>
595 <td><label for="subColumnsCB">Sub columns:</label></td>
596 <td>
597 <input type="checkbox" data-dojo-id="subColumnsCB" id="subColumnsCB" data-dojo-type="dijit.form.CheckBox" checked="true" />
598 </td>
599 </tr>
600
601 </table>
602 </div>
603
604 <div data-dojo-type="dijit.TitlePane" title="Date/Time Patterns" class="formPanel" open="false">
605 <table class="formTable">
606 <tr>
607 <td>Row format:</td>
608 <td><div data-dojo-id="rowHeaderFormatEditor" data-dojo-type="dijit.form.TextBox" style="width:110px" data-dojo-props="placeHolder:'ex: h a'"></div></td>
609 </tr>
610 <tr>
611 <td>Column format:</td>
612 <td><div data-dojo-id="columnHeaderFormatEditor" data-dojo-type="dijit.form.TextBox" style="width:110px" data-dojo-props="placeHolder:'ex: EEE MMM, dd'"></div></td>
613
614 </tr>
615 <tr>
616 <td colspan="2" style="text-align:right;padding-top:5px;padding-right:5px"><button data-dojo-id="dateFormatButton" data-dojo-type="dijit.form.Button">Apply</button></td>
617 </tr>
618 </table>
619 </div>
620
621 <div data-dojo-type="dijit.TitlePane" title="Item Properties" class="formPanel" open="false">
622 <table>
623 <tr>
624 <td colspan="2">
625 <span style="font-size:0.9em">Summary:</span>
626 <div data-dojo-id="itemSummaryEditor" data-dojo-type="dijit.form.TextBox" style="width:140px; margin-left: 10px" data-dojo-props="placeHolder:'Summary...'"></div>
627 </td>
628 </tr>
629 <tr>
630 <td colspan="2">
631 <span style="font-size:0.9em">Calendar:</span>
632 <select data-dojo-id="calendarEditor" data-dojo-type="dijit.form.ComboBox" style="width:140px; margin-left: 12px" >
633 <option>Calendar 1</option>
634 <option>Calendar 2</option>
635 </select>
636 </td>
637 </tr>
638
639 <tr>
640 <td colspan="2" class="smallText" >
641 <input type="checkbox" data-dojo-id="allDayCB" data-dojo-type="dijit.form.CheckBox" checked="false" disabled="true" />
642 <label for="allDayCB">All day</label>
643 </td>
644 </tr>
645
646 <tr>
647 <td style="padding-top:5px;font-size:0.9em">Start time:</td>
648 </tr>
649 <tr>
650 <td style="text-align:right;">
651 <div data-dojo-id="itemStartDateEditor" data-dojo-type="dijit.form.DateTextBox" style="width:100px;" ></div>
652 </td>
653 <td>
654 <div data-dojo-id="itemStartTimeEditor" data-dojo-type="dijit.form.TimeTextBox" style="width:100px;" ></div>
655 </td>
656 </tr>
657
658 <tr>
659 <td style="padding-top:5px;font-size:0.9em">End time:</td>
660 </tr>
661
662 <tr>
663 <td style="text-align:right;">
664 <div data-dojo-id="itemEndDateEditor" data-dojo-type="dijit.form.DateTextBox" style="width:100px;" ></div>
665 </td>
666 <td>
667 <div data-dojo-id="itemEndTimeEditor" data-dojo-type="dijit.form.TimeTextBox" style="width:100px;" ></div>
668 </td>
669 </tr>
670
671 <tr>
672 <td colspan="2" style="text-align:right;padding-top:5px;font-size:0.9em">
673 <button data-dojo-id="updateItemButton" data-dojo-type="dijit.form.Button" disabled="true">Update</button>
674 </td>
675 </tr>
676 </table>
677 </div>
678
679 <div data-dojo-type="dijit.TitlePane" title="Editing properties" class="formPanel" data-dojo-props="open:true">
680 <table>
681 <tr>
682 <td colspan="2" class="smallText" >
683 <input type="checkbox" data-dojo-id="liveEditCB" data-dojo-type="dijit.form.CheckBox" checked="false" />
684 <label for="liveEditCB">Live layout</label>
685 </td>
686 </tr>
687 <tr>
688 <td colspan="2" class="smallText" >
689 <input type="checkbox" data-dojo-id="allowReassignCB" id="allowReassignCB" data-dojo-type="dijit.form.CheckBox" checked="true" />
690 <label for="allowReassignCB">Allow sub column change</label>
691 </td>
692 </tr>
693 <tr>
694 <td colspan="2" class="smallText" >
695 <input type="checkbox" data-dojo-id="allowSwapCB" data-dojo-type="dijit.form.CheckBox" checked="true" />
696 <label for="allowSwapCB">Allow start/end swap</label>
697 </td>
698 </tr>
699 <tr>
700 <td colspan="2" class="smallText" >
701 <input type="checkbox" data-dojo-id="editableCB" data-dojo-type="dijit.form.CheckBox" checked="true" />
702 <label for="editableCB">Editable (global)</label>
703 </td>
704 </tr>
705 <tr>
706 <td colspan="2" class="smallText" >
707 <input type="checkbox" data-dojo-id="keyEditableCB" data-dojo-type="dijit.form.CheckBox" checked="true" />
708 <label for="keyEditableCB">Keyboard Editable (global)</label>
709 </td>
710 </tr>
711 <tr>
712 <td colspan="2" class="smallText" >
713 <input type="checkbox" data-dojo-id="viewConstrainCB" data-dojo-type="dijit.form.CheckBox" checked="true" />
714 <label for="viewConstrainCB">Stay in view (global)</label>
715 </td>
716 </tr>
717 <tr>
718 <td colspan="2" class="smallText" >
719 <input type="checkbox" id="moveEnabledCB" data-dojo-id="moveEnabledCB" data-dojo-type="dijit.form.CheckBox" checked="false" disabled="true" />
720 <label id="moveEnabledCBLabel" for="moveEnabledCB" class="disabled">Move Enabled (item)</label>
721 </td>
722 </tr>
723 <tr>
724 <td colspan="2" class="smallText" >
725 <input type="checkbox" id="resizeEnabledCB" data-dojo-id="resizeEnabledCB" data-dojo-type="dijit.form.CheckBox" checked="false" disabled="true" />
726 <label id="resizeEnabledCBLabel" for="resizeEnabledCB" class="disabled">Resize Enabled (item)</label>
727 </td>
728 </tr>
729
730 <tr>
731 <td class="smallText">Snap (minutes):</td>
732 <td>
733 <select data-dojo-id="editingSnapEditor" data-dojo-type="dijit.form.ComboBox" style="width:80px;" onChange="colView.snapSteps = parseInt(this.value);">
734 <option value="5">5</option>
735 <option value="10">10</option>
736 <option value="15" selected>15</option>
737 <option value="20">20</option>
738 <option value="30">30</option>
739 <option value="60">60</option>
740 </select>
741 </td>
742 </tr>
743
744 <tr>
745 <td class="smallText">Min duration (minutes):</td>
746 <td>
747 <select data-dojo-id="editingMinDurationEditor" data-dojo-type="dijit.form.ComboBox" style="width:80px;" onChange="colView.minDurationSteps = parseInt(this.value);">
748 <option value="5">5</option>
749 <option value="10">10</option>
750 <option value="15" selected>15</option>
751 <option value="20">20</option>
752 <option value="30">30</option>
753 <option value="60">60</option>
754 </select>
755 </td>
756 </tr>
757 </table>
758 </div>
759
760 </div>
761
762 <div id="calendarNode"></div>
763
764 <div id="eventLogPane" title="Calendar events" data-dojo-type="dijit.TitlePane" data-dojo-props="toggleable:false" >
765
766 <div id="logTableContainer">
767 <table id="logTable">
768 <tbody id="logBody"></tbody>
769 </table>
770 </div>
771
772 </div>
773
774 </body>
775 </html>