2010-08-05 11:23:17 -05:00
|
|
|
<tal:comment replace="nothing">View macro for a Pod.</tal:comment>
|
|
|
|
<metal:view define-macro="view">
|
|
|
|
<tal:askAction condition="widget/askAction"
|
|
|
|
define="doLabel python:'%s_askaction' % widget['labelId'];
|
|
|
|
chekboxId python: '%s_%s' % (contextObj.UID(), name)">
|
|
|
|
<input type="checkbox" tal:attributes="name doLabel; id chekboxId"/>
|
|
|
|
<label tal:attributes="for chekboxId" class="discreet"
|
|
|
|
tal:content="python: tool.translate(doLabel)"></label>
|
|
|
|
</tal:askAction>
|
2010-10-14 07:43:56 -05:00
|
|
|
<img tal:repeat="podFormat python: tool.getPodInfo(contextObj, name)['formats']"
|
2010-08-05 11:23:17 -05:00
|
|
|
tal:attributes="src string: $portal_url/skyn/${podFormat}.png;
|
2010-10-14 07:43:56 -05:00
|
|
|
onClick python: 'generatePodDocument(\'%s\',\'%s\',\'%s\')' % (contextObj.UID(), name, podFormat);
|
2010-08-05 11:23:17 -05:00
|
|
|
title podFormat/capitalize"
|
|
|
|
style="cursor:pointer"/>
|
|
|
|
</metal:view>
|
|
|
|
|
|
|
|
<tal:comment replace="nothing">Edit macro for a Pod.</tal:comment>
|
|
|
|
<metal:edit define-macro="edit"></metal:edit>
|
|
|
|
|
|
|
|
<tal:comment replace="nothing">Cell macro for a Pod.</tal:comment>
|
|
|
|
<metal:cell define-macro="cell">
|
|
|
|
<metal:call use-macro="portal/skyn/widgets/pod/macros/view"/>
|
|
|
|
</metal:cell>
|
|
|
|
|
|
|
|
<tal:comment replace="nothing">Search macro for a Pod.</tal:comment>
|
|
|
|
<metal:search define-macro="search"></metal:search>
|