commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-old / civicrm / templates / CRM / Activity / Form / Task / Print.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.6 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
8 | |
9 | CiviCRM is free software; you can copy, modify, and distribute it |
10 | under the terms of the GNU Affero General Public License |
11 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
12 | |
13 | CiviCRM is distributed in the hope that it will be useful, but |
14 | WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
16 | See the GNU Affero General Public License for more details. |
17 | |
18 | You should have received a copy of the GNU Affero General Public |
19 | License and the CiviCRM Licensing Exception along |
20 | with this program; if not, contact CiviCRM LLC |
21 | at info[AT]civicrm[DOT]org. If you have questions about the |
22 | GNU Affero General Public License or the licensing of CiviCRM, |
23 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
24 +--------------------------------------------------------------------+
25 *}
26 <div class="crm-block crm-activity_task_print-form-block">
27 <p>
28 {if $rows }
29 <div class="crm-submit-buttons element-right">
30 {include file="CRM/common/formButtons.tpl" location="top"}
31 </div>
32 <div class="spacer"></div>
33 <br />
34 <p>
35 <table>
36 <tr class="columnheader">
37 <td>{ts}Type{/ts}</td>
38 <td>{ts}Subject{/ts}</td>
39 <td>{ts}Added By{/ts}</td>
40 <td>{ts}With{/ts}</td>
41 <td>{ts}Assigned to{/ts}</td>
42 <td>{ts}Date{/ts}</td>
43 <td>{ts}Status{/ts}</td>
44 </tr>
45
46 {foreach from=$rows item=row}
47 <tr class="{cycle values="odd-row,even-row"}">
48 <td>{$row.activity_type}</td>
49 <td>{$row.activity_subject}</td>
50 <td>{$row.source_contact_name}</td>
51 <td>
52 {if !$row.target_contact_name}
53 <em>n/a</em>
54 {elseif $row.target_contact_name}
55 {assign var="showTarget" value=0}
56 {foreach from=$row.target_contact_name item=targetName key=targetID}
57 {if $showTarget < 5}
58 {if $showTarget};&nbsp;{/if}<a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$targetID`"}" title="{ts}View contact{/ts}">{$targetName}</a>
59 {assign var="showTarget" value=$showTarget+1}
60 {/if}
61 {/foreach}
62 {/if}
63 </td>
64 <td>
65 {if !$row.assignee_contact_name}
66 <em>n/a</em>
67 {elseif $row.assignee_contact_name}
68 {assign var="showAssignee" value=0}
69 {foreach from=$row.assignee_contact_name item=assigneeName key=assigneeID}
70 {if $showAssignee < 5}
71 {if $showAssignee};&nbsp;{/if}<a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$assigneeID`"}" title="{ts}View contact{/ts}">{$assigneeName}</a>
72 {assign var="showAssignee" value=$showAssignee+1}
73 {/if}
74 {/foreach}
75 {/if}
76 </td>
77 <td>{$row.activity_date_time}</td>
78 <td>{$row.activity_status}</td>
79 </tr>
80 {/foreach}
81 </table>
82 <div class="crm-submit-buttons element-right">
83 {include file="CRM/common/formButtons.tpl" location="bottom"}
84 {else}
85 <div class="messages status no-popup">
86 <div class="icon inform-icon"></div>
87 {ts}There are no records selected for Print.{/ts}
88 </div>
89 {/if}
90 </div>