Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
2c4c49ca | 3 | | CiviCRM version 4.7 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
e7112fa7 | 5 | | Copyright CiviCRM LLC (c) 2004-2015 | |
6a488035 TO |
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 | *} | |
d0e79cbd | 26 | {include file="CRM/common/pager.tpl" location="top"} |
6a488035 TO |
27 | |
28 | {strip} | |
16850d34 | 29 | <table class="selector row-highlight"> |
6a488035 TO |
30 | <thead class="sticky"> |
31 | <tr> | |
32 | {if !$single and $context eq 'Search' } | |
33 | <th scope="col" title="Select Rows">{$form.toggleSelect.html}</th> | |
34 | {/if} | |
36bf52ef | 35 | {assign var="softCreditColumns" value=0} |
6a488035 TO |
36 | {foreach from=$columnHeaders item=header} |
37 | <th scope="col"> | |
38 | {if $header.sort} | |
39 | {assign var='key' value=$header.sort} | |
40 | {$sort->_response.$key.link} | |
41 | {else} | |
42 | {$header.name} | |
7f7fa13a | 43 | {/if} |
6a488035 | 44 | </th> |
7f7fa13a EM |
45 | {if $header.name eq "Soft Credit For"} |
46 | {assign var='softCreditColumns' value=1} | |
47 | {/if} | |
6a488035 TO |
48 | {/foreach} |
49 | </tr> | |
7f7fa13a | 50 | </thead> |
6a488035 TO |
51 | |
52 | {counter start=0 skip=1 print=false} | |
53 | {foreach from=$rows item=row} | |
54 | <tr id="rowid{$row.contribution_id}" class="{cycle values="odd-row,even-row"}{if $row.cancel_date} cancelled{/if} crm-contribution_{$row.contribution_id}"> | |
55 | {if !$single } | |
56 | {if $context eq 'Search' } | |
57 | {assign var=cbName value=$row.checkbox} | |
58 | <td>{$form.$cbName.html}</td> | |
59 | {/if} | |
60 | <td>{$row.contact_type}</td> | |
61 | <td><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.contact_id`"}">{$row.sort_name}</a></td> | |
62 | {/if} | |
4f3846df DS |
63 | {if $row.contribution_soft_credit_amount} |
64 | <td class="right bold crm-contribution-amount"> </td> | |
65 | {else} | |
66 | <td class="right bold crm-contribution-amount"><span class="nowrap">{$row.total_amount|crmMoney:$row.currency}</span> {if $row.amount_level }<br /> ({$row.amount_level}){/if} | |
67 | {if $row.contribution_recur_id} | |
7f7fa13a | 68 | <br /> {ts}(Recurring Contribution){/ts} |
4f3846df DS |
69 | {/if} |
70 | </td> | |
71 | {/if} | |
72 | {if $softCreditColumns} | |
73 | <td class="right bold crm-contribution-soft_credit_amount"><span class="nowrap">{$row.contribution_soft_credit_amount|crmMoney:$row.currency}</span></td> | |
6a488035 | 74 | {/if} |
6a488035 TO |
75 | <td class="crm-contribution-type crm-contribution-type_{$row.financial_type_id} crm-financial-type crm-financial-type_{$row.financial_type_id}">{$row.financial_type}</td> |
76 | <td class="crm-contribution-source">{$row.contribution_source}</td> | |
77 | <td class="crm-contribution-receive_date">{$row.receive_date|crmDate}</td> | |
78 | <td class="crm-contribution-thankyou_date">{$row.thankyou_date|crmDate}</td> | |
79 | <td class="crm-contribution-status"> | |
80 | {$row.contribution_status}<br /> | |
81 | {if $row.cancel_date} | |
82 | {$row.cancel_date|crmDate} | |
83 | {/if} | |
84 | </td> | |
85 | <td class="crm-contribution-product_name">{$row.product_name}</td> | |
36bf52ef | 86 | {if $softCreditColumns} |
4f3846df | 87 | <td class="crm-contribution-soft_credit_name"><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.contribution_soft_credit_contact_id`"}">{$row.contribution_soft_credit_name}</a></td> |
36bf52ef DS |
88 | <td class="crm-contribution-soft_credit_type">{$row.contribution_soft_credit_type}</td> |
89 | {/if} | |
6a488035 TO |
90 | <td>{$row.action|replace:'xx':$row.contribution_id}</td> |
91 | </tr> | |
92 | {/foreach} | |
93 | ||
6a488035 TO |
94 | </table> |
95 | {/strip} | |
96 | ||
d0e79cbd | 97 | {include file="CRM/common/pager.tpl" location="bottom"} |