Merge pull request #3215 from eileenmcnaughton/comments
[civicrm-core.git] / templates / CRM / Contribute / Page / ContributionSoft.tpl
CommitLineData
6a488035
TO
1{*
2 +--------------------------------------------------------------------+
819d0d41 3 | CiviCRM version 4.5 |
6a488035 4 +--------------------------------------------------------------------+
819d0d41 5 | Copyright CiviCRM LLC (c) 2004-2014 |
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}
28<table class="form-layout-compressed">
29 <tr>
30 <th class="contriTotalLeft">{ts}Total Soft Credits{/ts} - {$softCreditTotals.amount|crmMoney:$softCreditTotals.currency}</th>
31 <th class="right" width="10px"> &nbsp; </th>
32 <th class="right contriTotalRight"> &nbsp; {ts}Avg Soft Credits{/ts} - {$softCreditTotals.avg|crmMoney:$softCreditTotals.currency}</th>
33 </tr>
34</table>
35<p></p>
36
16850d34 37<table class="selector row-highlight">
6a488035
TO
38 <tr class="columnheader">
39 <th scope="col">{ts}Contributor{/ts}</th>
40 <th scope="col">{ts}Amount{/ts}</th>
41 <th scope="col">{ts}Type{/ts}</th>
51fa20cb 42 <th scope="col">{ts}Financial Type{/ts}</th>
6a488035
TO
43 <th scope="col" class="sorting_desc">{ts}Received{/ts}</th>
44 <th scope="col">{ts}Status{/ts}</th>
45 <th scope="col">{ts}Personal Campaign Page?{/ts}</th>
46 <th></th>
47 </tr>
48 {foreach from=$softCreditRows item=row}
49 <tr id='rowid{$row.id}' class="{cycle values="odd-row,even-row"}">
50 <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>
51 <td>{$row.amount|crmMoney:$row.currency}</td>
51fa20cb 52 <td>{$row.sct_label}</td>
6a488035
TO
53 <td>{$row.financial_type}</td>
54 <td>{$row.receive_date|truncate:10:''|crmDate}</td>
55 <td>{$row.contribution_status}</td>
56 <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>
57 <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>
58 </tr>
59 {/foreach}
60</table>
61{/strip}
62{/if}