Update of /var/cvs/contributions/didactor2/src/assessment/templates/assessment
In directory james.mmbase.org:/tmp/cvs-serv27572
Modified Files:
matrix.div.jspx
Log Message:
creating relation with lesson
See also:
http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/assessment/templates/assessment
Index: matrix.div.jspx
===================================================================
RCS file:
/var/cvs/contributions/didactor2/src/assessment/templates/assessment/matrix.div.jspx,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- matrix.div.jspx 7 Aug 2008 08:42:35 -0000 1.4
+++ matrix.div.jspx 13 Aug 2008 07:28:26 -0000 1.5
@@ -15,6 +15,7 @@
<!-- Display the problem itself -->
+
<span class="col problem">
<div class="intro">
<mm:field name="name">
@@ -36,6 +37,20 @@
<!-- And, per lesson, how much trouble it gave -->
<mm:node number="${education}">
<mm:relatednodes type="learnblocks" path="posrel,learnblocks"
orderby="posrel.pos">
+ <mm:node>
+ <mm:import id="learnBlock"><mm:field
name="number"/></mm:import>
+ </mm:node>
+ <mm:node referid="problem">
+ <mm:listrelationscontainer type="learnblocks" role="posrel">
+ <mm:size id="problemItem" write="false"/>
+ <c:if test="${problemItem eq 0}">
+ <mm:createrelation source="problem"
destination="learnBlock" role="posrel" commitonclose="true">
+ <mm:setfield name="pos">2</mm:setfield>
+ </mm:createrelation>
+ </c:if>
+ </mm:listrelationscontainer>
+ </mm:node>
+
<mm:size id="size" write="false" />
<span class="col" style="width: ${60 / size}%">
<mm:listrelationscontainer type="problems" role="posrel">
@@ -49,6 +64,8 @@
</mm:listrelationscontainer>
<jsp:text>&#160;</jsp:text>
</span>
+
+
</mm:relatednodes>
</mm:node>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs