Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
39de6fd5 | 3 | | CiviCRM version 4.6 | |
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 | *} | |
26 | {if $softCreditRows} | |
27 | {strip} | |
91ef9be0 | 28 | {if $context neq 'membership'} |
29 | <table class="form-layout-compressed"> | |
30 | <tr> | |
31 | <th class="contriTotalLeft">{ts}Total Soft Credits{/ts} - {$softCreditTotals.amount|crmMoney:$softCreditTotals.currency}</th> | |
32 | <th class="right" width="10px"> </th> | |
33 | <th class="right contriTotalRight"> {ts}Avg Soft Credits{/ts} - {$softCreditTotals.avg|crmMoney:$softCreditTotals.currency}</th> | |
34 | </tr> | |
35 | </table> | |
36 | <p></p> | |
37 | {/if} | |
6a488035 | 38 | |
16850d34 | 39 | <table class="selector row-highlight"> |
6a488035 | 40 | <tr class="columnheader"> |
7f7fa13a | 41 | <th scope="col">{ts}Contributor{/ts}</th> |
6a488035 TO |
42 | <th scope="col">{ts}Amount{/ts}</th> |
43 | <th scope="col">{ts}Type{/ts}</th> | |
51fa20cb | 44 | <th scope="col">{ts}Financial Type{/ts}</th> |
6a488035 TO |
45 | <th scope="col" class="sorting_desc">{ts}Received{/ts}</th> |
46 | <th scope="col">{ts}Status{/ts}</th> | |
47 | <th scope="col">{ts}Personal Campaign Page?{/ts}</th> | |
48 | <th></th> | |
49 | </tr> | |
50 | {foreach from=$softCreditRows item=row} | |
51 | <tr id='rowid{$row.id}' class="{cycle values="odd-row,even-row"}"> | |
52 | <td><a href="{crmURL p="civicrm/contact/view" q="reset=1&cid=`$row.contributor_id`"}" id="view_contact" title="{ts}View contributor contact record{/ts}">{$row.contributor_name}</a></td> | |
53 | <td>{$row.amount|crmMoney:$row.currency}</td> | |
51fa20cb | 54 | <td>{$row.sct_label}</td> |
6a488035 TO |
55 | <td>{$row.financial_type}</td> |
56 | <td>{$row.receive_date|truncate:10:''|crmDate}</td> | |
57 | <td>{$row.contribution_status}</td> | |
58 | <td>{if $row.pcp_id}<a href="{crmURL p="civicrm/pcp/info" q="reset=1&id=`$row.pcp_id`"}" title="{ts}View Personal Campaign Page{/ts}">{$row.pcp_title}</a>{else}{ts}(n/a){/ts}{/if}</td> | |
59 | <td><a href="{crmURL p="civicrm/contact/view/contribution" q="reset=1&id=`$row.contribution_id`&cid=`$contactId`&action=view&context=contribution&selectedChild=contribute"}" title="{ts}View related contribution{/ts}">{ts}View{/ts}</a></td> | |
60 | </tr> | |
61 | {/foreach} | |
62 | </table> | |
63 | {/strip} | |
64 | {/if} |