Afficher les derniers auteurs
1 <div id="mailsender">
2 <div class="mailbox">
3 #set($emailok = true)
4 #foreach($participant in $request.participants.split(","))
5 #set($mail = "")
6 #set($name = "")
7 #set($recdoc = $xwiki.getDocument($participant))
8 #if($recdoc.getObject("XWiki.XWikiUsers"))
9 #set($mail = $recdoc.getObject("XWiki.XWikiUsers").get("email"))
10 #if($mail=="")
11 #set($emailok = false)
12 #end
13 #set($name = $xwiki.getUserName($recdoc.fullName, false))
14 #elseif($recdoc.getObject("MMCode.MeetingClass")) ## meeting participants
15 #set($name = "%Full Name%")
16 #end
17 #if($mail!="")
18 #if($emails && $emails!="")
19 #set($emails = "$!{emails},$!{mail}")
20 #else
21 #set($emails = $!mail)
22 #end
23 #end
24 #if($names!="")
25 #set($names = "$!{names},$!{name}")
26 #else
27 #set($names = $!name)
28 #end
29 #end
30 *$msg.get('meetings.mail.to')* <input type="text" id="recipient" size="60" value="${emails}" />
31
32 #if(!$emails || $emails == "")
33 $msg.get('meetings.mail.missingallemails')
34 #elseif(!$emailok)
35 $msg.get('meetings.mail.missingemails')
36 #end
37 </div>
38 #set($meeting = $xwiki.getDocument("$!request.meeting"))
39 #set($meetingTitle = $meeting.title)
40 #set($meetingURL = $meeting.getExternalURL())
41 #if($request.mail)
42 #includeTopic("$!request.mail")
43 #end
44 <input type="hidden" name="participants" id="participants" value="$!request.participants" />
45 <input type="hidden" name="template" id="template" value="$!request.mail" />
46 <input type="hidden" name="meeting" id="meeting" value="$!request.meeting" />
47 <div class="mailbox">
48 *$msg.get('meetings.mail.personalnote')* $msg.get('meetings.mail.personalnoteextra')
49 <textarea id="mailnote" cols="80" rows="5"></textarea>
50 </div>
51 <button id="sendmail">$msg.get('meetings.mail.send')</button>
52 <button id="skipmail">$msg.get('meetings.mail.skip')</button>
53 {pre}
54 <script>
55 Event.observe($('sendmail'), "click", function() {
56 Modalbox.hide();
57 XWiki.MeetingManager.sendMails();
58 });
59 Event.observe($('skipmail'), "click", function(){
60 Modalbox.hide();
61 XWiki.MeetingManager.addParticipantToMeeting("");
62 });
63 </script>
64 {/pre}
65 </div>