
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1354 fd906abe-77d9-0310-91a1-e0d9ade77398
78 lines
2.4 KiB
XML
78 lines
2.4 KiB
XML
<metal:block define-macro="render">
|
|
<div tal:attributes="ondblclick python: item.openEditWindow('configure.html')">
|
|
<h1 tal:content="item/title">Title</h1>
|
|
<tal:body define="itemNum view/itemNum;
|
|
id string:$itemNum.body;">
|
|
<tal:edit define="target nocall:item;
|
|
item nocall:view;">
|
|
<div metal:use-macro="views/node_macros/editicons" />
|
|
</tal:edit>
|
|
<div class="content-1" id="1.body"
|
|
tal:attributes="id id;"
|
|
tal:content="structure item/render">
|
|
The body
|
|
</div>
|
|
</tal:body>
|
|
</div>
|
|
</metal:block>
|
|
|
|
|
|
<metal:block define-macro="render_note">
|
|
<metal:render use-macro="item/template/macros/render" />
|
|
<div class="content-1" id="1.link">
|
|
<a href="."
|
|
tal:attributes="href item/linkUrl"
|
|
tal:condition="item/linkUrl">more...</a>
|
|
</div>
|
|
</metal:block>
|
|
|
|
|
|
<metal:block define-macro="image">
|
|
<div tal:attributes="ondblclick python: item.openEditWindow('edit.html')">
|
|
<h3 tal:content="item/title">Title</h3>
|
|
<img src="#"
|
|
tal:attributes="src string:${view/url}/.target${view/targetId}/view" />
|
|
</div>
|
|
</metal:block>
|
|
|
|
|
|
<metal:block define-macro="download">
|
|
<div tal:attributes="ondblclick python: item.openEditWindow('edit.html')">
|
|
<h3 tal:content="item/title">Title</h3>
|
|
<a href="#"
|
|
tal:attributes="href string:${view/url}/.target${view/targetId}/view">
|
|
Download '<span tal:replace="item/title" />'
|
|
</a>
|
|
</div>
|
|
</metal:block>
|
|
|
|
|
|
<form action="." method="post"
|
|
metal:define-macro="delete_object"
|
|
tal:define="action view/deleteObjectAction|nothing"
|
|
tal:condition="action"
|
|
tal:attributes="action action"
|
|
id="form.object.delete">
|
|
<span class="actionButtons"><br />
|
|
<input type="hidden" name="ids:list" value="obj"
|
|
tal:attributes="value context/zope:name" />
|
|
<input type="submit" id="object.delete"
|
|
name="container_delete_button"
|
|
value="Delete object" class="button"
|
|
onclick="return confirm('Do you really want to delete this object?')" />
|
|
</span>
|
|
</form>
|
|
|
|
|
|
<metal:actions define-macro="related">
|
|
<div class="menu-2"
|
|
tal:repeat="concept macro/info/concepts">
|
|
<a href="#"
|
|
tal:content="concept/title"
|
|
tal:attributes="href string:${view/url}/.target${concept/uniqueId}">
|
|
Concept
|
|
</a>
|
|
</div>
|
|
</metal:actions>
|
|
|
|
|