loops/browser/lobo/standard.pt
Helmut Merz 7223b08b5a - provide additional metaInfo field, e.g. for storing source and rights
information for media assets; show this in info popup;
  link image to info popup in Lobo skin standard views
- Lobo listings: allow for restriction of children listed to certain types
2011-08-21 15:52:21 +02:00

121 lines
3.7 KiB
XML

<html i18n:domain="loops">
<metal:block define-macro="layout">
<tal:part repeat="part item/getParts">
<metal:part use-macro="part/macro" />
</tal:part>
</metal:block>
<metal:block define-macro="grid">
<tal:cell repeat="cell part/getChildren">
<div tal:attributes="class cell/cssClass;
style cell/style">
<a tal:attributes="href cell/targetUrl;
title cell/description">
<metal:image use-macro="item/macros/image" />
<div class="legend">
<b tal:content="cell/title" /><br />
<i tal:content="cell/description" />
</div>
</a>
</div>
</tal:cell>
</metal:block>
<metal:block define-macro="list1">
<tal:cell repeat="cell part/getChildren">
<div tal:condition="cell/img"
tal:attributes="class python:cell.cssClass[0]">
<a tal:attributes="href cell/targetUrl;
title cell/description">
<metal:image use-macro="item/macros/image" />
</a><br />&nbsp;
</div>
<div tal:attributes="class python:cell.cssClass[1]">
<a tal:attributes="href cell/targetUrl">
<b tal:content="cell/title" /></a><br />
<tal:desc condition="cell/description">
<i tal:content="structure cell/renderedDescription" /></tal:desc>
<br />
</div>
</tal:cell>
</metal:block>
<metal:block define-macro="header1">
<div tal:define="cell part/getView">
<metal:headline use-macro="item/macros/headline" />
<div tal:define="showImageLink python:True"
tal:attributes="class python:part.cssClass[0]">
<metal:image use-macro="item/macros/image" />
</div>
<div tal:attributes="class python:part.cssClass[1]">
<span tal:content="structure cell/renderedTextDescription" />
</div>
<tal:break condition="cell/img">
<br style="clear: both" />&nbsp;</tal:break>
<div tal:condition="cell/renderedText"
tal:attributes="class python:part.cssClass[2]">
<metal:text use-macro="item/macros/text" />
</div>
</div>
</metal:block>
<metal:block define-macro="header2">
<div tal:define="cell part/getView;
showImageLink python:True">
<metal:headline use-macro="item/macros/headline" />
<metal:image use-macro="item/macros/image" />
<metal:text use-macro="item/macros/text" />
</div>
</metal:block>
<!-- basic component macros -->
<metal:image define-macro="image">
<tal:img condition="cell/img">
<a title="Information about this object."
tal:omit-tag="not:showImageLink|python:False"
i18n:attributes="title"
tal:define="url string:${cell/img/url}/object_info.html"
tal:attributes="href url;
onclick string:objectDialog('', '$url?dialog=');; return false">
<img tal:condition="cell/img"
tal:attributes="src cell/img/src;
class cell/img/cssClass" />
</a>
</tal:img>
</metal:image>
<metal:block define-macro="text"
tal:define="text cell/renderedText"
tal:condition="text">
<span tal:content="structure text" />
<br />
</metal:block>
<metal:block define-macro="headline">
<h1 tal:attributes="ondblclick cell/openEditWindow">
<a tal:attributes="href cell/targetUrl"
tal:content="cell/title" />
<a title="Show tabular view"
i18n:attributes="title"
tal:condition="cell/editable"
tal:attributes="href string:${cell/targetUrl}?loops.viewName=index.html">
<img tal:attributes="src string:$resourceBase/cybertools.icons/table.png" />
</a>
</h1>
<div tal:condition="cell/description">
<i tal:content="structure cell/renderedDescription" />
&nbsp;</div>
</metal:block>
</html>