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