Update of 
/var/cvs/contributions/didactor2/src/education/templates/education/wizards/modes
In directory james.mmbase.org:/tmp/cvs-serv32455/modes

Modified Files:
        tests.jsp 
Log Message:
cleaned up a bit, made reload in 'tests' tab work


See also: 
http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/education/templates/education/wizards/modes


Index: tests.jsp
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/education/templates/education/wizards/modes/tests.jsp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- tests.jsp   28 Mar 2008 10:32:31 -0000      1.5
+++ tests.jsp   28 Mar 2008 10:44:41 -0000      1.6
@@ -9,6 +9,8 @@
       class="tests">
     <mm:import id="imageName" />
     <mm:import id="sAltText" />
+    <mm:content type="application/xml"
+                expires="${param.expires}">
     <mm:cloud rank="basic user">
       <jsp:directive.include file="../mode.include.jsp" />
       <di:has editcontext="toetsen"> <!-- WTF, this is dutch, toetsen means 
'tests'  -->
@@ -102,7 +104,15 @@
                     icon="edit_learnobject"
                     branchPath=". ">
                   <mm:nodeinfo type="type" id="type_of_node" write="false">
+
                     <mm:compare value="mcquestions">
+
+                        <!-- What a horror.
+                        TODO:
+                        validation done outside the editor?
+                        code duplication
+                        I18N.
+                        -->
                       <mm:import id="mark_error" reset="true">Een 
multiple-choice vraag moet minstens 1 goed antwoord hebben</mm:import>
                       <mm:relatednodes type="mcanswers" 
constraints="mcanswers.correct > '0'" max="1">
                         <mm:import id="mark_error" reset="true"></mm:import>
@@ -120,6 +130,7 @@
                       </mm:link>
                     </mm:compare>
                     <mm:compare  
valueset="couplingquestions,dropquestions,hotspotquestions,openquestions,rankingquestions,valuequestions,fillquestions,fillselectquestions,essayquestions">
+                        <mm:hasnodemanager name="${_}">
                       <mm:link referid="wizardjsp" referids="[EMAIL 
PROTECTED]">
                         <mm:param 
name="wizard">config/question/${type_of_node}</mm:param>
                         <mm:param name="path">${testname}</mm:param>
@@ -127,6 +138,7 @@
                            title="${di:translate('education.edit')}"
                            target="text"><mm:field name="title" /></a>
                       </mm:link>
+                        </mm:hasnodemanager>
                     </mm:compare>
                   </mm:nodeinfo>
                 </di:leaf>
@@ -136,5 +148,6 @@
         </div>
       </di:has>
     </mm:cloud>
+    </mm:content>
   </div>
 </jsp:root>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to