Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
fee14197 | 3 | | CiviCRM version 5 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
6b83d5bd | 5 | | Copyright CiviCRM LLC (c) 2004-2019 | |
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"> |
5963b706 CR |
32 | |
33 | <div id="secondaryTabContainer" class="ui-tabs ui-widget ui-widget-content ui-corner-all"> | |
c1bd8375 | 34 | {include file="CRM/common/TabSelected.tpl" defaultTab="contributions" tabContainer="#secondaryTabContainer"} |
5963b706 | 35 | |
5963b706 CR |
36 | <ul class="ui-tabs-nav ui-corner-all ui-helper-reset ui-helper-clearfix ui-widget-header"> |
37 | <li id="tab_contributions" class="crm-tab-button ui-corner-all ui-tabs-tab ui-corner-top ui-state-default ui-tab ui-tabs-active ui-state-active"> | |
38 | <a href="#contributions-subtab" title="{ts}Contributions{/ts}"> | |
7255972e | 39 | {ts}Contributions{/ts} <em>{$tabCount}</em> |
5963b706 CR |
40 | </a> |
41 | </li> | |
42 | <li id="tab_recurring" class="crm-tab-button ui-corner-all ui-tabs-tab ui-corner-top ui-state-default ui-tab"> | |
43 | <a href="#recurring-subtab" title="{ts}Recurring Contributions{/ts}"> | |
51e31e45 | 44 | {ts}Recurring Contributions{/ts} <em>{$contributionRecurCount}</em> |
5963b706 CR |
45 | </a> |
46 | </li> | |
47 | </ul> | |
48 | ||
49 | <div id="contributions-subtab" class="ui-tabs-panel ui-widget-content ui-corner-bottom"> | |
50 | <div class="help"> | |
6a488035 | 51 | {if $permission EQ 'edit'} |
2c407361 | 52 | {capture assign=newContribURL}{crmURL p="civicrm/contact/view/contribution" q="reset=1&action=add&cid=`$contactId`&context=contribution"}{/capture} |
a1c7d42f | 53 | {capture assign=link}class="action-item" href="{$newContribURL}"{/capture} |
2c407361 | 54 | {ts 1=$link}Click <a %1>Record Contribution</a> to record a new contribution received from this contact.{/ts} |
5963b706 CR |
55 | {if $newCredit} |
56 | {capture assign=newCreditURL}{crmURL p="civicrm/contact/view/contribution" q="reset=1&action=add&cid=`$contactId`&context=contribution&mode=live"}{/capture} | |
57 | {capture assign=link}class="action-item" href="{$newCreditURL}"{/capture} | |
58 | {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} | |
59 | {/if} | |
6a488035 | 60 | {else} |
5963b706 | 61 | {ts 1=$displayName}Contributions received from %1 since inception.{/ts} |
6a488035 | 62 | {/if} |
5963b706 | 63 | </div> |
6a488035 | 64 | |
5963b706 | 65 | {if $action eq 16 and $permission EQ 'edit'} |
6a488035 | 66 | <div class="action-link"> |
5963b706 CR |
67 | <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> |
68 | {if $newCredit} | |
69 | <a accesskey="N" href="{$newCreditURL}" class="button"><span><i class="crm-i fa-credit-card"></i> {ts}Submit Credit Card Contribution{/ts}</span></a> | |
70 | {/if} | |
71 | <br /><br /> | |
6a488035 | 72 | </div> |
5963b706 CR |
73 | <div class='clear'></div> |
74 | {/if} | |
6a488035 | 75 | |
5963b706 | 76 | {if $rows} |
6a488035 | 77 | {include file="CRM/Contribute/Page/ContributionTotals.tpl" mode="view"} |
5963b706 | 78 | <div class='clear'></div> |
6a488035 | 79 | {include file="CRM/Contribute/Form/Selector.tpl"} |
5963b706 | 80 | {else} |
6a488035 | 81 | <div class="messages status no-popup"> |
5963b706 CR |
82 | <div class="icon inform-icon"></div> |
83 | {ts}No contributions have been recorded from this contact.{/ts} | |
6a488035 | 84 | </div> |
5963b706 | 85 | {/if} |
6a488035 | 86 | |
5963b706 CR |
87 | {if $softCredit} |
88 | <div class="crm-block crm-contact-contribute-softcredit"> | |
89 | <h3>{ts}Soft credits{/ts} {help id="id-soft_credit"}</h3> | |
90 | {include file="CRM/Contribute/Page/ContributionSoft.tpl"} | |
91 | </div> | |
92 | {/if} | |
93 | </div> | |
94 | <div id="recurring-subtab" class="ui-tabs-panel ui-widget-content ui-corner-bottom"> | |
95 | {if $recur} | |
c2047803 | 96 | <div class="crm-block crm-contact-contribute-recur crm-contact-contribute-recur-active"> |
5963b706 CR |
97 | <h3>{ts}Active Recurring Contributions{/ts}</h3> |
98 | {include file="CRM/Contribute/Page/ContributionRecur.tpl" recurRows=$activeRecurRows} | |
99 | </div> | |
c2047803 | 100 | <div class="crm-block crm-contact-contribute-recur crm-contact-contribute-recur-inactive"> |
5963b706 CR |
101 | <h3>{ts}Inactive Recurring Contributions{/ts}</h3> |
102 | {include file="CRM/Contribute/Page/ContributionRecur.tpl" recurRows=$inactiveRecurRows} | |
103 | </div> | |
104 | {/if} | |
105 | </div> | |
106 | <div class="clear"></div> | |
107 | </div> | |
6a488035 TO |
108 | </div> |
109 | {/if} |