changeset 29:417b6c14057b

neues layout
author dwinter
date Mon, 27 May 2013 22:39:15 +0200
parents 30dee40ff84b
children 0bad2371550e
files zpt/levelFormatted.zpt
diffstat 1 files changed, 88 insertions(+), 58 deletions(-) [+]
line wrap: on
line diff
--- a/zpt/levelFormatted.zpt	Fri May 24 16:15:32 2013 +0200
+++ b/zpt/levelFormatted.zpt	Mon May 27 22:39:15 2013 +0200
@@ -1,65 +1,95 @@
 <!--  exmample for level template -->
-<ul>
-<tal:x  tal:repeat="level1
+
+<tal:x tal:repeat="level1
 					     python:options['level1_entries']">
-					     
-<li class="level_1 indent showApproach"><img tal:attributes="src string:en/images/foldout_open.png"/>						     
-  <span tal:content="python:here.getTitle(level1) +'('+ str(len(here.getProjectsWithTag(options['type'],here.getTitle(level1)))) +')' ">Lorem</span>
-</li>
- 
- <li class="li_project  projectsWindow">
-  <table class="items">
-    <tr class="line" tal:repeat="proj
+
+	<ul class="foldable">
+		<li class="type fold_head level_1  showApproach"><img
+			class="fold_open"
+			tal:attributes="src python:root.absolute_url()+'/www/images/foldout_open.png'"
+			alt="" /> <img class="fold_closed"
+			tal:attributes="src python:root.absolute_url()+'/www/images/foldout_closed.png'"
+			alt=""> <span
+			tal:content="python:here.getTitle(level1) +'('+ str(len(here.getProjectsWithTag(options['type'],here.getTitle(level1)))) +')' ">Lorem</span>
+		</li>
+
+		<li class="li_project fold_body projectsWindow">
+			<table class="items">
+				<tr class="line"
+					tal:repeat="proj
 					     python:here.getProjectsWithTag(options['type'],here.getTitle(level1))">
-    
-      <tal:x on-error="python:'ERROR'">
-    
-    <td><a tal:attributes="href python:proj[0]"><img class="thumb" tal:define="imgUrl python:proj[3]" tal:condition="imgUrl" tal:attributes="src imgUrl"/></a></td>
-	<td><a tal:condition="python:proj!=None" tal:attributes="href
-							     python:proj[0]"><span 
-										tal:replace="python:proj[1]">my proj</span></a>
-	<tal:x define="person python:proj[2]"><span 
-						 class="person_projects" tal:content="person"/></tal:x>
-      </td>
-      </tal:x>
-      </tr>
-    </table>
-  </li>
-  
-  <tal:y condition="python:len(here.getEntries(level1))>0">
-    <tal:x tal:repeat="level2
+
+					<tal:x on-error="python:'ERROR'">
+
+						<td><a tal:attributes="href python:proj[0]"><img
+								class="thumb" tal:define="imgUrl python:proj[3]"
+								tal:condition="imgUrl" tal:attributes="src imgUrl" src="" alt="" /></a></td>
+						<td><a tal:condition="python:proj!=None"
+							tal:attributes="href
+							     python:proj[0]"><span
+								tal:replace="python:proj[1]">my proj</span></a> <tal:x
+								define="person python:proj[2]">
+								<span class="person_projects" tal:content="person" />
+							</tal:x></td>
+					</tal:x>
+				</tr>
+			</table>
+		</li>
+
+		<tal:y condition="python:len(here.getEntries(level1))&gt;0">
+			<tal:x 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)&gt;0">
+
+
 		
-	<tal:x define="subitems
-			     python:here.getProjectsWithTag(options['type'],here.getTitle(level1)+'_'+here.getTitle(level2))"
-	    	 condition="python:len(subitems)>0">	    
-    
-    <li class="level_2 indent" ><img tal:attributes="src string:en/images/foldout_open.png"/>  	  
-	<span class="showApproach"
-	      tal:content="python:here.getTitle(level2) +'
+					<li class="level_2 indent fold_body">
+					
+					<div class="foldable2">
+					<div class="fold_head2">
+					<img
+			class="fold_open"
+			tal:attributes="src python:root.absolute_url()+'/www/images/foldout_open.png'"
+			alt="" /> <img class="fold_closed"
+			tal:attributes="src python:root.absolute_url()+'/www/images/foldout_closed.png'"
+			alt=""> <span class="showApproach"
+						tal:content="python:here.getTitle(level2) +'
 			   ('+str(len(subitems))+')'">Lor</span>
-	</li>
-	 <li class="level2 indent li_project projectsWindow">
-  <table class="items ">
-    <tr class="line" tal:repeat="proj
-					     python:here.getProjectsWithTag(options['type'],here.getTitle(level1))">
-    
-      <tal:x on-error="python:'ERROR'">
-    
-    <td><a tal:attributes="href python:proj[0]"><img class="thumb" tal:define="imgUrl python:proj[3]" tal:condition="imgUrl" tal:attributes="src imgUrl"/></a></td>
-	<td><a tal:condition="python:proj!=None" tal:attributes="href
-							     python:proj[0]"><span 
-										tal:replace="python:proj[1]">my proj</span></a>
-	<tal:x define="person python:proj[2]"><span 
-						 class="person_projects" tal:content="person"/></tal:x>
-      </td>
-      </tal:x>
-      </tr>
-    </table>
-  </li>
-    </tal:x>
-      </tal:x>
-    
-  </tal:y>
+</div>
+						<div class="level2 fold_body2 indent li_project projectsWindow">
+							<table class="items ">
+								<tr class="line" tal:repeat="proj python:subitems">
+									<tal:x on-error="python:'ERROR'">
+
+										<td><a tal:attributes="href python:proj[0]"><img
+												class="thumb" tal:define="imgUrl python:proj[3]"
+												tal:condition="imgUrl" tal:attributes="src imgUrl" src=""
+												alt="" /></a></td>
+										<td><a tal:condition="python:proj!=None"
+											tal:attributes="href
+							     python:proj[0]"><span
+												tal:replace="python:proj[1]">my proj</span></a> <tal:x
+												define="person python:proj[2]">
+												<span class="person_projects" tal:content="person" />
+											</tal:x></td>
+									</tal:x>
+								</tr>
+							</table>
+						</div>
+						
+						</div>
+						</li>
+
+
+
+
+				</tal:x>
+			</tal:x>
+
+		</tal:y>
+	</ul>
 </tal:x>
-</ul>
\ No newline at end of file