diff zpt/Copy of levelFormatted.zpt @ 28:30dee40ff84b

thesaurus for new version of the website
author dwinter
date Fri, 24 May 2013 16:15:32 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/zpt/Copy of levelFormatted.zpt	Fri May 24 16:15:32 2013 +0200
@@ -0,0 +1,31 @@
+<!--  exmample for level template -->
+
+<div class="level1"  tal:repeat="level1
+					     python:options['level1_entries']">
+  <span class="showApproach" tal:content="python:here.getTitle(level1) +'('+ str(len(here.getProjectsWithTag(options['type'],here.getTitle(level1)))) +')' ">Lorem</span>
+  <div class="projectsWindow">
+    <div class="level1_projects" tal:repeat="proj
+					     python:here.getProjectsWithTag(options['type'],here.getTitle(level1))"><a tal:attributes="href
+																       python:proj[0]"><span tal:content="python:proj[1]">my proj</span></a><tal:x define="person python:proj[2]"><span 
+																														     class="person_projects" tal:content="person"/></tal:x></div>
+  </div>
+  <tal:y condition="python:len(here.getEntries(level1))>0">
+    
+    <div class="level2" tal:repeat="level2
+				    python:here.getEntries(level1)">
+      <tal:x define="subitems
+		     python:here.getProjectsWithTag(options['type'],here.getTitle(level1)+'_'+here.getTitle(level2))"
+	     condition="python:len(subitems)>0">
+	<span class="showApproach"
+	      tal:content="python:here.getTitle(level2) +'
+			   ('+str(len(subitems))+')'">Lor</span>
+	<div  class="projectsWindow">
+	  <div class="level2_projects" tal:repeat="proj python:subitems">
+	    <a tal:attributes="href python:proj[0]"><span tal:content="python:proj[1]">my proj</span></a>
+	    <tal:x define="person python:proj[2]"><span class="person_projects"  tal:content="person"/></tal:x></div>
+	</div>
+	
+      </tal:x>
+    </div>
+  </tal:y>
+</div>
\ No newline at end of file