Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
3 | | CiviCRM version 4.3 | | |
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 | {else} | |
31 | <div class="view-content"> | |
32 | <div id="help"> | |
33 | {if $permission EQ 'edit'} | |
34 | {capture assign=newContribURL}{crmURL p="civicrm/contact/view/contribution" q="reset=1&action=add&cid=`$contactId`&context=contribution"}{/capture} | |
35 | {ts 1=$newContribURL}Click <a href='%1'>Record Contribution (Check, Cash, EFT ...)</a> to record a new contribution received from this contact.{/ts} | |
36 | {if $newCredit} | |
37 | {capture assign=newCreditURL}{crmURL p="civicrm/contact/view/contribution" q="reset=1&action=add&cid=`$contactId`&context=contribution&mode=live"}{/capture} | |
38 | {ts 1=$newCreditURL}Click <a href='%1'>Submit Credit Card Contribution</a> to process a new contribution on behalf of the contributor using their credit card.{/ts} | |
39 | {/if} | |
40 | {else} | |
41 | {ts 1=$displayName}Contributions received from %1 since inception.{/ts} | |
42 | {/if} | |
43 | </div> | |
44 | ||
45 | {if $action eq 16 and $permission EQ 'edit'} | |
46 | <div class="action-link"> | |
47 | <a accesskey="N" href="{$newContribURL}" class="button"><span><div class="icon add-icon"></div>{ts}Record Contribution (Check, Cash, EFT ...){/ts}</span></a> | |
48 | {if $newCredit} | |
49 | <a accesskey="N" href="{$newCreditURL}" class="button"><span><div class="icon add-icon"></div>{ts}Submit Credit Card Contribution{/ts}</span></a> | |
50 | {/if} | |
51 | <br /><br /> | |
52 | </div> | |
53 | <div class='clear'> </div> | |
54 | {/if} | |
55 | ||
56 | ||
57 | {if $rows} | |
58 | {include file="CRM/Contribute/Page/ContributionTotals.tpl" mode="view"} | |
59 | <p> </p> | |
60 | {include file="CRM/Contribute/Form/Selector.tpl"} | |
61 | {else} | |
62 | <div class="messages status no-popup"> | |
63 | <div class="icon inform-icon"></div> | |
64 | {ts}No contributions have been recorded from this contact.{/ts} | |
65 | </div> | |
66 | {/if} | |
67 | ||
68 | {if $recur} | |
69 | <div class="solid-border-top"> | |
70 | <br /><label>{ts 1=$displayName}Recurring Contributions{/ts}</label> | |
71 | </div> | |
72 | {include file="CRM/Contribute/Page/ContributionRecur.tpl"} | |
73 | {/if} | |
74 | ||
75 | {if $honor} | |
76 | <div class="solid-border-top"> | |
77 | <br /><label>{ts 1=$displayName}Contributions made in honor of %1{/ts}</label> | |
78 | </div> | |
79 | {include file="CRM/Contribute/Page/ContributionHonor.tpl"} | |
80 | {/if} | |
81 | ||
82 | {if $softCredit} | |
83 | <div class="solid-border-top"> | |
84 | <br /> | |
85 | <div class="label">{ts}Soft credits{/ts} {help id="id-soft_credit"}</div> | |
86 | <div class="spacer"></div> | |
87 | </div> | |
88 | {include file="CRM/Contribute/Page/ContributionSoft.tpl"} | |
89 | {/if} | |
90 | </div> | |
91 | {/if} |