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:
parent
06d69431d3
commit
7e414d2cbb
2 changed files with 43 additions and 10 deletions
|
@ -45,11 +45,35 @@
|
|||
tal:define="children python: list(item.children())"
|
||||
tal:condition="children">
|
||||
<h2>Children</h2><br />
|
||||
<div tal:repeat="related children">
|
||||
<a href="#"
|
||||
tal:attributes="href string:${view/url}/.target${related/uniqueId}"
|
||||
tal:content="related/title">Concept Title</a>
|
||||
</div>
|
||||
<table class="listing">
|
||||
<tr>
|
||||
<th>Title</th>
|
||||
<th>Type</th>
|
||||
<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> </td>
|
||||
<td colspan="2">
|
||||
<i tal:content="description">describing...</i>
|
||||
</td>
|
||||
</tr>
|
||||
</tal:item>
|
||||
</tal:items>
|
||||
</table>
|
||||
</div>
|
||||
</metal:children>
|
||||
|
||||
|
@ -81,8 +105,9 @@
|
|||
<tr tal:define="description related/description"
|
||||
tal:condition="description"
|
||||
tal:attributes="class class">
|
||||
<td colspan="3" style="padding-left: 3em">
|
||||
<span tal:replace="description">describing...</span>
|
||||
<td> </td>
|
||||
<td colspan="2">
|
||||
<i tal:content="description">describing...</i>
|
||||
</td>
|
||||
</tr>
|
||||
</tal:item>
|
||||
|
|
|
@ -133,9 +133,7 @@
|
|||
tal:define="target nocall:item/target">
|
||||
<div class="content-1"
|
||||
tal:content="structure item/body"
|
||||
tal:attributes="ondblclick python:
|
||||
target and target.openEditWindow('resources.html')
|
||||
or item.openEditWindow();
|
||||
tal:attributes="ondblclick python: item.openEditWindow();
|
||||
id string:${view/itemNum}.body;">
|
||||
Listing
|
||||
</div><br />
|
||||
|
@ -146,6 +144,11 @@
|
|||
<a href="#"
|
||||
tal:attributes="href string:${view/url}/.target${related/uniqueId}"
|
||||
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>
|
||||
</metal:resources>
|
||||
|
@ -168,6 +171,11 @@
|
|||
<a href="#"
|
||||
tal:attributes="href string:${view/url}/.target${related/uniqueId}"
|
||||
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>
|
||||
</metal:children>
|
||||
|
|
Loading…
Add table
Reference in a new issue