{* +--------------------------------------------------------------------+ | Copyright CiviCRM LLC. All rights reserved. | | | | This work is published under the GNU AGPLv3 license with some | | permitted exceptions and without any warranty. For full license | | and copyright information, see https://civicrm.org/licensing | +--------------------------------------------------------------------+ *}

{if $rows }

{include file="CRM/common/formButtons.tpl" location="top"}

{foreach from=$rows item=row} {/foreach}
{ts}Type{/ts} {ts}Subject{/ts} {ts}Added by{/ts} {ts}With{/ts} {ts}Assigned to{/ts} {ts}Date{/ts} {ts}Status{/ts}
{$row.activity_type} {$row.activity_subject} {$row.source_contact_name} {if !$row.target_contact_name} n/a {elseif $row.target_contact_name} {assign var="showTarget" value=0} {foreach from=$row.target_contact_name item=targetName key=targetID} {if $showTarget < 5} {if $showTarget}; {/if}{$targetName} {assign var="showTarget" value=$showTarget+1} {/if} {/foreach} {/if} {if !$row.assignee_contact_name} n/a {elseif $row.assignee_contact_name} {assign var="showAssignee" value=0} {foreach from=$row.assignee_contact_name item=assigneeName key=assigneeID} {if $showAssignee < 5} {if $showAssignee}; {/if}{$assigneeName} {assign var="showAssignee" value=$showAssignee+1} {/if} {/foreach} {/if} {$row.activity_date_time} {$row.activity_status}

{include file="CRM/common/formButtons.tpl" location="bottom"} {else}
{ts}There are no records selected for Print.{/ts}
{/if}