provide listings with description and other informations for concepts (children, resources) and special listings (listresources, listchildren)

git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1612 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2007-03-05 12:10:30 +00:00
parent 06d69431d3
commit 7e414d2cbb
2 changed files with 43 additions and 10 deletions

View file

@ -45,11 +45,35 @@
tal:define="children python: list(item.children())" tal:define="children python: list(item.children())"
tal:condition="children"> tal:condition="children">
<h2>Children</h2><br /> <h2>Children</h2><br />
<div tal:repeat="related children"> <table class="listing">
<a href="#" <tr>
tal:attributes="href string:${view/url}/.target${related/uniqueId}" <th>Title</th>
tal:content="related/title">Concept Title</a> <th>Type</th>
</div> <th>Modification Date</th>
</tr>
<tal:items repeat="related children">
<tal:item define="class python: repeat['related'].odd() and 'even' or 'odd'">
<tr tal:attributes="class class">
<td valign="top">
<a href="#"
tal:attributes="href string:${view/url}/.target${related/uniqueId}">
<span tal:replace="related/title">Resource Title</span>
</a>
</td>
<td><span tal:replace="related/typeTitle">Type</span></td>
<td><span tal:replace="related/modified">Type</span></td>
</tr>
<tr tal:define="description related/description"
tal:condition="description"
tal:attributes="class class">
<td>&nbsp;</td>
<td colspan="2">
<i tal:content="description">describing...</i>
</td>
</tr>
</tal:item>
</tal:items>
</table>
</div> </div>
</metal:children> </metal:children>
@ -81,8 +105,9 @@
<tr tal:define="description related/description" <tr tal:define="description related/description"
tal:condition="description" tal:condition="description"
tal:attributes="class class"> tal:attributes="class class">
<td colspan="3" style="padding-left: 3em"> <td>&nbsp;</td>
<span tal:replace="description">describing...</span> <td colspan="2">
<i tal:content="description">describing...</i>
</td> </td>
</tr> </tr>
</tal:item> </tal:item>

View file

@ -133,9 +133,7 @@
tal:define="target nocall:item/target"> tal:define="target nocall:item/target">
<div class="content-1" <div class="content-1"
tal:content="structure item/body" tal:content="structure item/body"
tal:attributes="ondblclick python: tal:attributes="ondblclick python: item.openEditWindow();
target and target.openEditWindow('resources.html')
or item.openEditWindow();
id string:${view/itemNum}.body;"> id string:${view/itemNum}.body;">
Listing Listing
</div><br /> </div><br />
@ -146,6 +144,11 @@
<a href="#" <a href="#"
tal:attributes="href string:${view/url}/.target${related/uniqueId}" tal:attributes="href string:${view/url}/.target${related/uniqueId}"
tal:content="related/title">Resource Title</a> tal:content="related/title">Resource Title</a>
<div style="margin-left: 3em"
tal:define="description related/description"
tal:condition="description">
<i tal:content="description">Description</i>
</div>
</div> </div>
</div> </div>
</metal:resources> </metal:resources>
@ -168,6 +171,11 @@
<a href="#" <a href="#"
tal:attributes="href string:${view/url}/.target${related/uniqueId}" tal:attributes="href string:${view/url}/.target${related/uniqueId}"
tal:content="related/title">Resource Title</a> tal:content="related/title">Resource Title</a>
<div style="margin-left: 3em"
tal:define="description related/description"
tal:condition="description">
<i tal:content="description">Description</i>
</div>
</div> </div>
</div> </div>
</metal:children> </metal:children>