<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>
  <img tal:repeat="podFormat python: tool.getPodInfo(contextObj, name)['formats']"
       tal:attributes="src string: $portal_url/skyn/${podFormat}.png;
                       onClick python: 'generatePodDocument(\'%s\',\'%s\',\'%s\')' % (contextObj.UID(), name, podFormat);
                       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>