Merge remote-tracking branch 'upstream/4.3' into 4.3-4.4-2013-11-11-10-44-51
[civicrm-core.git] / templates / CRM / Contribute / Page / ContributionHonor.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
232624b1 3 | CiviCRM version 4.4 |
6a488035
TO
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2013 |
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{if $action eq 1 or $action eq 2 or $action eq 8} {* add, update or view *}
27 {include file="CRM/Contribute/Form/Contribution.tpl"}
28{elseif $action eq 4}
29 {include file="CRM/Contribute/Form/ContributionView.tpl"}
30{/if}
31{if $honorRows}
32 {strip}
33 <table class="selector">
34 <tr class="columnheader">
35 <th scope="col">{ts}Contributor{/ts}</th>
36 <th scope="col">{ts}Amount{/ts}</th>
37 <th scope="col">{ts}Type{/ts}</th>
38 <th scope="col">{ts}Source{/ts}</th>
39 <th scope="col">{ts}Received{/ts}</th>
40 <th scope="col">{ts}Status{/ts}</th>
41 <th>&nbsp;</th>
42 </tr>
43 {foreach from=$honorRows item=row}
44 <tr id='rowid{$row.honorId}' class="{cycle values="odd-row,even-row"}">
45 <td><a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$row.honorId`"}" id="view_contact">{$row.display_name}</a></td>
46 <td>{$row.amount}</td>
47 <td>{$row.type}</td>
48 <td>{$row.source}</td>
49 <td>{$row.receive_date|truncate:10:''|crmDate}</td>
50 <td>{$row.contribution_status}</td>
51 <td>{$row.action|replace:'xx':$row.honorId}</td>
52 </tr>
53 {/foreach}
54 </table>
55 {/strip}
56{/if}
57