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

Modified Files:
        components.jsp educations.jsp 
Log Message:
will replace this horrible tree stuff with jquery-tree


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


Index: components.jsp
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/education/templates/education/wizards/modes/components.jsp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- components.jsp      1 Feb 2008 14:06:25 -0000       1.3
+++ components.jsp      9 Jan 2009 17:27:56 -0000       1.4
@@ -4,14 +4,17 @@
           xmlns:di="http://www.didactor.nl/ditaglib_1.0";>
   <mm:cloud rank="basic user">
     <di:has action="rw" editcontext="componenten" > <!-- dutch -->
+      <ul class="tree">
       <mm:listnodes type="components" orderby="name">
+          <li>
         <mm:treefile id="file" page="/components/edit.jsp" 
objectlist="$includePath"
                      referids="_n...@component" write="false" />
         <a target="text" href="${file}">
           <mm:field name="name" />
         </a>
-        <br />
+          </li>
       </mm:listnodes>
+      </ul>
     </di:has>
   </mm:cloud>
 </jsp:root>


Index: educations.jsp
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/education/templates/education/wizards/modes/educations.jsp,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -b -r1.28 -r1.29
--- educations.jsp      17 Nov 2008 13:54:49 -0000      1.28
+++ educations.jsp      9 Jan 2009 17:27:56 -0000       1.29
@@ -25,11 +25,8 @@
               Educations come from here
           -->
           <di:has editcontext="opleidingen"><!-- TODO DUTCH. 'opleidingen' 
means 'educations' -->
-            <a href="javascript:clickNode('node_0')">
-              <img src='gfx/tree_minlast.gif' width="16" border='0' 
align='center' valign='middle' id='img_node_0'/>
-            </a>
-            <img src='gfx/menu_root.gif' border='0' align='center' 
valign='middle' /> <!-- Why are we including style in the HTML? -->
-            <span style='width:100px; white-space: nowrap'>
+            <ul class="tree">
+              <li>
               <mm:link referid="listjsp${forbidtemplate}"
                        referids="provider">
                 <mm:param name="wizard">config/education/educations</mm:param>
@@ -41,9 +38,7 @@
                   <di:translate key="education.educationmenueducations" />
                 </a>
               </mm:link>
-            </span>
-            <br /><!-- br's are silly -->
-            <div id='node_0'>
+                <ul>
               <mm:node number="$user">
                 <mm:hasrank value="administrator">
                   <mm:listnodes id="educations" type="educations" />
@@ -55,7 +50,7 @@
               <mm:import id="number_of_educations" 
reset="true">${fn:length(educations)}</mm:import>
 
               <di:has editcontext="create_education">
-                <di:leaf  branchPath=". ">
+                    <li>
                   <mm:link referid="wizardjsp" referids="u...@origin,provider">
                     <mm:param 
name="wizard">config/education/educations-origin</mm:param>
                     <mm:param name="objectnumber">new</mm:param>
@@ -64,7 +59,7 @@
                        
title="${di:translate('education.createneweducationdescription')}"
                        target="text"><di:translate 
key="education.createneweducation" /></a>
                   </mm:link>
-                </di:leaf>
+                    </li>
               </di:has>
 
               <mm:import id="educationId" externid="e">${education}</mm:import>
@@ -72,7 +67,7 @@
               <mm:isgreaterthan referid="number_of_educations" value="0">
                 <!-- The Education starts from here -->
                 <mm:node number="${educationId}">
-                  <di:leaf  click="education_0" open="true" branchPath="..">
+                      <li>
                     <mm:link referid="wizardjsp" referids="_n...@objectnumber">
                       <mm:param 
name="wizard">config/education/educations</mm:param>
                       <mm:param name="title"><di:translate 
key="education.editeducation" /></mm:param>
@@ -102,29 +97,26 @@
                     <mm:hasnode number="component.versioning">
                       <a href="versioning.jsp?nodeid=${educationId}" 
target="text"><img src="gfx/versions.gif" border="0" /></a>
                     </mm:hasnode>
-                  </di:leaf>
-
-                  <div id="education_0">
-                    <!-- Registration -->
+                        <ul>
                     <mm:hasnode number="component.register">
-                      <di:leaf
-                          icon="new_education"
-                          branchPath=".. ">
+                            <li>
+                              <di:icon name="new_education" />
                         <mm:treefile write="false" 
page="/register/wizards/register.jsp"
                                      referids="$referids,educationId"
                                      objectlist="$includePath">
                           <a href="${_}" 
title="${di:translate('register.registrations')}"
                              target="text"><di:translate 
key="register.registrations" /></a>
                         </mm:treefile>
-                      </di:leaf>
+                            </li>
+
                     </mm:hasnode>
 
 
                     <!-- I think it is hackery -->
                     <mm:hasnode number="component.portal">
-                      <di:leaf
-                          icon="new_education"
-                          branchPath=".. ">
+
+                            <li>
+                              <di:icon name="new_education" />
                         <mm:treefile write="false" 
page="/portal/wizards/index.jspx"
                                      referids="language,educationId,$referids" 
objectlist="$includePath">
                           <a href="${_}"
@@ -132,7 +124,7 @@
                              target="text"><di:translate key="portal.portal" />
                           </a>
                         </mm:treefile>
-                      </di:leaf>
+                            </li>
                     </mm:hasnode>
 
                     <mm:listrelations role="posrel" orderby="posrel.pos"
@@ -141,9 +133,8 @@
                       <mm:field name="pos" write="false" id="maxpos" />
                     </mm:listrelations>
                     <!-- create new learnblock item -->
-                    <di:leaf
-                        icon="new_education"
-                        branchPath=".. ">
+                            <li>
+                              <di:icon name="new_education" />
                       <mm:link referid="wizardjsp" referids="_n...@origin">
                         <mm:param 
name="wizard">config/learnblocks/learnblocks-origin</mm:param>
                         <mm:param name="objectnumber">new</mm:param>
@@ -151,7 +142,7 @@
                         <a href="${_}" 
title="${di:translate('education.createnewlearnblockdescription')}" 
target="text">
                         <di:translate key="education.createnewlearnblock" 
/></a>
                       </mm:link>
-                    </di:leaf>
+                            </li>
 
 
                     <!-- All learnblocks for current education -->
@@ -193,9 +184,7 @@
                         </mm:field>
                       </mm:compare>
 
-                      <di:leaf
-                          click="node_0_0_${learnblockcounter}"
-                          branchPath="..${status.last ? '.' : ' '}">
+                              <li>
                         <mm:import id="guitype" ><mm:nodeinfo type="guitype" 
escape="lowercase" /></mm:import>
                         <mm:link referid="wizardjsp" 
referids="_n...@objectnumber">
                           <mm:param name="wizard">config/<mm:nodeinfo 
type="type"/>/<mm:nodeinfo type="type" /></mm:param>
@@ -224,9 +213,7 @@
                             <a href="${_}" target="text"><img 
src="gfx/versions.gif" border="0" /></a>
                           </mm:link>
                         </mm:hasnode>
-                      </di:leaf>
-
-                      <div id="node_0_0_${learnblockcounter}" 
style="display:none">
+                                <ul>
                         <mm:treeinclude
                             debug="html"
                             page="/education/wizards/learnobject.jsp"
@@ -235,12 +222,16 @@
                           <mm:param name="branchPath">..${status.last ? '.' : 
' '}</mm:param>
                           <mm:param name="startnode"><mm:field name="number" 
/></mm:param>
                         </mm:treeinclude>
-                      </div>
+                                </ul>
+                              </li>
                     </mm:relatednodes>
-                  </div>
+                        </ul>
+                      </li>
                 </mm:node>
               </mm:isgreaterthan>
-            </div>
+                </ul>
+              </li>
+            </ul>
           </di:has>
         </mm:cloud>
       </mm:content>
_______________________________________________
Cvs mailing list
Cvs@lists.mmbase.org
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to