Update of /var/cvs/contributions/didactor2/src/assessment/templates/assessment
In directory james.mmbase.org:/tmp/cvs-serv26829

Modified Files:
        closelesson.jsp 
Added Files:
        send_student_mail.jspx 
Log Message:
added a feature to be able to send student mail to


See also: 
http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/assessment/templates/assessment


send_student_mail.jspx is new



Index: closelesson.jsp
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/assessment/templates/assessment/closelesson.jsp,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- closelesson.jsp     24 Nov 2008 11:16:40 -0000      1.12
+++ closelesson.jsp     28 Nov 2008 14:36:06 -0000      1.13
@@ -36,7 +36,7 @@
 
 
       <!--
-          Now send mail
+          Now send mail to coach
       -->
       <c:if test="${di:setting('assessment', 'send_email') eq 'true')}">
         <mm:node number="$user">
@@ -54,7 +54,8 @@
                   <mm:setfield name="to"><mm:field name="email" node="teacher" 
/></mm:setfield>
                   <mm:setfield name="subject"><mm:write 
referid="subject"/></mm:setfield>
                   <mm:setfield name="body"><di:translate 
key="assessment.give_feedback_body" /></mm:setfield>
-                  <mm:setfield name="type">1</mm:setfield>
+                  <mm:setfield name="type">TYPE_ONESHOT</mm:setfield>
+                  <mm:function name="startmail" />
                 </mm:createnode>
               </mm:related>
             </mm:node>
@@ -62,6 +63,13 @@
         </mm:node>
       </c:if>
 
+      <!--
+        And to the student
+      -->
+      <c:if test="${di:setting('assessment', 'send_student_email') eq 
'true')}">
+        <mm:include page="send_student_mail.jspx" referids="user,lesson" />
+      </c:if>
+
 
     </mm:node>
 
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to