Location: PHPKode > projects > Eventum > eventum-2.2/templates/expandable_cell/buttons.tpl.html
{strip}
{if $remote_func != ''}
    <script>setRemoteFunction('{$ec_id}', '{$remote_func}');</script>
{/if}
{if $list_id == ''}
    {assign var="js_expand_func" value="expandAll('$rel_url', '$ec_id')"}
    {capture assign="expand_all"}{t}Expand all collapsed cells{/t}{/capture}
    {assign var="expand_tip" value=$expand_all}
    {assign var="js_collapse_func" value="collapseAll('$ec_id')"}
    {capture assign="collapse_all"}{t}Collapse all expanded cells{/t}{/capture}
    {assign var="collapse_tip" value=$collapse_all}
{else}
    {assign var="js_expand_func" value="expand('$rel_url', '$ec_id', '$list_id')"}
    {capture assign="expand"}{t}Expand collapsed cell{/t}{/capture}
    {assign var="expand_tip" value=$expand}
    {assign var="js_collapse_func" value="collapse('$ec_id', '$list_id')"}
    {capture assign="collapse"}{t}Collapse expanded cell{/t}{/capture}
    {assign var="collapse_tip" value=$collapse}
{/if}
&nbsp;<a href="javascript:{$js_expand_func}" style="text-decoration: none"><img src="{$rel_url}images/icons/plus.gif" border="0" alt="{$expand_tip}"></a>&nbsp;
<a href="javascript:{$js_collapse_func}"  style="text-decoration: none"><img src="{$rel_url}images/icons/minus.gif" border="0" alt="{$collapse_tip}"></a>&nbsp;
{/strip}
Return current item: Eventum