Code source wiki de MeetingMinutes
Modifié par Vincent Massol le 2011/08/12 21:26
Afficher les derniers auteurs
author | version | line-number | content |
---|---|---|---|
1 | {{velocity filter="none"}} | ||
2 | {{html clean="false" wiki="true"}} | ||
3 | #wysiwyg_import(false) | ||
4 | #set($ok = $xwiki.jsx.use('MMCode.MeetingMinutes')) | ||
5 | #if("$!request.type" == "" || "$!request.type" == "minutes") | ||
6 | #if("$!request.xpage" == "") | ||
7 | <h2 class="meetingh2"> | ||
8 | $msg.get('meetings.meeting.minutes') | ||
9 | </h2> | ||
10 | <div id="meetingminutes"> | ||
11 | <div id="editmeetingminutes">$msg.get('meetings.meeting.minutes.edit')</div> | ||
12 | <div id="meetingminutescontent"> | ||
13 | #if($request.started=="1") | ||
14 | #info("$msg.get('meetings.meeting.startmeeting.started')") | ||
15 | #end | ||
16 | <div id="minutescontent"> | ||
17 | <div id="minutesedit" class="hidden editableInfos"> | ||
18 | <div id="minuteseditcontent" class=""> | ||
19 | $!meeting.display("minutes", "edit") | ||
20 | ## Set the input value for the editor. | ||
21 | {{html wiki="false"}} | ||
22 | #wysiwyg_inputProperty($meetingDoc "MMCode.MeetingClass_0_minutes") | ||
23 | #wysiwyg_storeConfig("meetingMinutesEditorConfig" $meetingDoc "MMCode.MeetingClass_0_minutes" false) | ||
24 | {{/html}} | ||
25 | </div> | ||
26 | <span class="buttonwrapper"> | ||
27 | <button id="saveminutes">$msg.get('meetings.meeting.saveminutes')</button> | ||
28 | <button id="saveminutesandclose">$msg.get('meetings.meeting.saveminutesandclose')</button> | ||
29 | </span> | ||
30 | </div> | ||
31 | <div id="minutesview"> | ||
32 | #else | ||
33 | #set($meetingDoc = $xwiki.getDocument($request.meeting)) | ||
34 | #set($meeting = $meetingDoc.getObject("MMCode.MeetingClass")) | ||
35 | #end | ||
36 | #if("$!meeting.getProperty('minutes').value" == "") | ||
37 | #warning("$msg.get('meetings.meeting.minutes.empty')") | ||
38 | #else | ||
39 | $meeting.display('minutes', 'view') | ||
40 | #end | ||
41 | #if("$!request.xpage" == "") | ||
42 | </div> | ||
43 | </div> | ||
44 | </div> | ||
45 | </div> | ||
46 | #end | ||
47 | #end | ||
48 | #if("$!request.type" == "" || "$!request.type" == "tasks") | ||
49 | #if("$!request.xpage" == "") | ||
50 | <h2 class="meetingh2"> | ||
51 | $msg.get('meetings.meeting.tasks') | ||
52 | </h2> | ||
53 | <div id="meetingtasks"> | ||
54 | <div id="editmeetingtasks">$msg.get('meetings.meeting.tasks.edit')</div> | ||
55 | <div id="meetingtaskscontent"> | ||
56 | <div id="taskscontent"> | ||
57 | <div id="tasksedit" class="hidden editableInfos"> | ||
58 | <div id="taskseditcontent" class=""> | ||
59 | $meeting.display("tasks", "edit") | ||
60 | {{html wiki="false"}} | ||
61 | #wysiwyg_inputProperty($meetingDoc "MMCode.MeetingClass_0_tasks") | ||
62 | #wysiwyg_storeConfig("meetingTasksEditorConfig" $meetingDoc "MMCode.MeetingClass_0_tasks" false) | ||
63 | {{/html}} | ||
64 | </div> | ||
65 | <span class="buttonwrapper"> | ||
66 | <button id="savetasks">$msg.get('meetings.meeting.savetasks')</button> | ||
67 | <button id="savetasksandclose">$msg.get('meetings.meeting.savetasksandclose')</button> | ||
68 | </span> | ||
69 | </div> | ||
70 | <div id="tasksview"> | ||
71 | #else | ||
72 | #set($meetingDoc = $xwiki.getDocument($request.meeting)) | ||
73 | #set($meeting = $meetingDoc.getObject("MMCode.MeetingClass")) | ||
74 | #end | ||
75 | #if("$!meeting.getProperty('tasks').value" == "") | ||
76 | #warning("$msg.get('meetings.meeting.tasks.empty')") | ||
77 | #else | ||
78 | $meeting.display('tasks', 'view') | ||
79 | #end | ||
80 | #if("$!request.xpage" == "") | ||
81 | </div> | ||
82 | </div> | ||
83 | </div> | ||
84 | </div> | ||
85 | #end | ||
86 | #end | ||
87 | {{/html}} | ||
88 | {{/velocity}} |