cybertools/browser/action_macros.pt
helmutm b408da0731 remove condition from action macro, must be handled by Python code when setting up the actions
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3908 fd906abe-77d9-0310-91a1-e0d9ade77398
2010-06-27 13:12:03 +00:00

33 lines
1.2 KiB
XML

<html i18n:domain="loops">
<!-- action macros
$Id$-->
<metal:action define-macro="action">
<div class="action"
tal:attributes="class action/cssClass;
id action/dialogName|nothing;
title action/description;"
i18n:attributes="title">
<a href="#" target="target_window" title="Description text"
tal:omit-tag="not:action/url"
tal:attributes="href action/url;
target action/targetWindow;
title action/description;
onClick action/onClick;"
i18n:attributes="title"><img src="#" alt="icon"
tal:condition="action/icon"
tal:attributes="src string:$resourceBase${action/icon};
alt action/description"
i18n:attributes="alt" />
<span i18n:translate=""
tal:condition="action/title"
tal:content="action/title">Action Title</span></a>
</div>
<span id="inner.Id"
tal:condition="action/innerHtmlId"
tal:attributes="id action/innerHtmlId"></span>
</metal:action>
</html>