Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
1188c7a8 | 3 | | Copyright CiviCRM LLC. All rights reserved. | |
6a488035 | 4 | | | |
1188c7a8 TO |
5 | | This work is published under the GNU AGPLv3 license with some | |
6 | | permitted exceptions and without any warranty. For full license | | |
7 | | and copyright information, see https://civicrm.org/licensing | | |
6a488035 TO |
8 | +--------------------------------------------------------------------+ |
9 | *} | |
10 | <div class="crm-block crm-activity_task_print-form-block"> | |
11 | <p> | |
edc51caa | 12 | {if $rows } |
6a488035 TO |
13 | <div class="crm-submit-buttons element-right"> |
14 | {include file="CRM/common/formButtons.tpl" location="top"} | |
15 | </div> | |
16 | <div class="spacer"></div> | |
17 | <br /> | |
18 | <p> | |
19 | <table> | |
20 | <tr class="columnheader"> | |
21 | <td>{ts}Type{/ts}</td> | |
22 | <td>{ts}Subject{/ts}</td> | |
ff3f9641 | 23 | <td>{ts}Added by{/ts}</td> |
6a488035 | 24 | <td>{ts}With{/ts}</td> |
3bd48a28 | 25 | <td>{ts}Assigned to{/ts}</td> |
6a488035 TO |
26 | <td>{ts}Date{/ts}</td> |
27 | <td>{ts}Status{/ts}</td> | |
28 | </tr> | |
29 | ||
30 | {foreach from=$rows item=row} | |
31 | <tr class="{cycle values="odd-row,even-row"}"> | |
32 | <td>{$row.activity_type}</td> | |
33 | <td>{$row.activity_subject}</td> | |
34 | <td>{$row.source_contact_name}</td> | |
35 | <td> | |
36 | {if !$row.target_contact_name} | |
37 | <em>n/a</em> | |
38 | {elseif $row.target_contact_name} | |
39 | {assign var="showTarget" value=0} | |
40 | {foreach from=$row.target_contact_name item=targetName key=targetID} | |
41 | {if $showTarget < 5} | |
42 | {if $showTarget}; {/if}<a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$targetID`"}" title="{ts}View contact{/ts}">{$targetName}</a> | |
43 | {assign var="showTarget" value=$showTarget+1} | |
44 | {/if} | |
45 | {/foreach} | |
46 | {/if} | |
47 | </td> | |
48 | <td> | |
49 | {if !$row.assignee_contact_name} | |
50 | <em>n/a</em> | |
51 | {elseif $row.assignee_contact_name} | |
52 | {assign var="showAssignee" value=0} | |
53 | {foreach from=$row.assignee_contact_name item=assigneeName key=assigneeID} | |
54 | {if $showAssignee < 5} | |
55 | {if $showAssignee}; {/if}<a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$assigneeID`"}" title="{ts}View contact{/ts}">{$assigneeName}</a> | |
56 | {assign var="showAssignee" value=$showAssignee+1} | |
57 | {/if} | |
58 | {/foreach} | |
59 | {/if} | |
60 | </td> | |
61 | <td>{$row.activity_date_time}</td> | |
62 | <td>{$row.activity_status}</td> | |
63 | </tr> | |
64 | {/foreach} | |
65 | </table> | |
66 | <div class="crm-submit-buttons element-right"> | |
67 | {include file="CRM/common/formButtons.tpl" location="bottom"} | |
68 | {else} | |
69 | <div class="messages status no-popup"> | |
34d6cec4 | 70 | {icon icon="fa-info-circle"}{/icon} |
6a488035 TO |
71 | {ts}There are no records selected for Print.{/ts} |
72 | </div> | |
73 | {/if} | |
232624b1 | 74 | </div> |