Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
1188c7a8 | 3 | | Copyright CiviCRM LLC. All rights reserved. | |
6a488035 | 4 | | | |
1188c7a8 TO |
5 | | This work is published under the GNU AGPLv3 license with some | |
6 | | permitted exceptions and without any warranty. For full license | | |
7 | | and copyright information, see https://civicrm.org/licensing | | |
6a488035 TO |
8 | +--------------------------------------------------------------------+ |
9 | *} | |
10 | {if $action eq 1 or $action eq 2 or $action eq 8} {* add, update or view *} | |
11 | {include file="CRM/Contribute/Form/Contribution.tpl"} | |
12 | {elseif $action eq 4} | |
13 | {include file="CRM/Contribute/Form/ContributionView.tpl"} | |
14 | {else} | |
9806f96d | 15 | <div class="contact-summary-contribute-tab view-content"> |
5963b706 CR |
16 | |
17 | <div id="secondaryTabContainer" class="ui-tabs ui-widget ui-widget-content ui-corner-all"> | |
c1bd8375 | 18 | {include file="CRM/common/TabSelected.tpl" defaultTab="contributions" tabContainer="#secondaryTabContainer"} |
5963b706 | 19 | |
5963b706 CR |
20 | <ul class="ui-tabs-nav ui-corner-all ui-helper-reset ui-helper-clearfix ui-widget-header"> |
21 | <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"> | |
22 | <a href="#contributions-subtab" title="{ts}Contributions{/ts}"> | |
7255972e | 23 | {ts}Contributions{/ts} <em>{$tabCount}</em> |
5963b706 CR |
24 | </a> |
25 | </li> | |
26 | <li id="tab_recurring" class="crm-tab-button ui-corner-all ui-tabs-tab ui-corner-top ui-state-default ui-tab"> | |
27 | <a href="#recurring-subtab" title="{ts}Recurring Contributions{/ts}"> | |
51e31e45 | 28 | {ts}Recurring Contributions{/ts} <em>{$contributionRecurCount}</em> |
5963b706 CR |
29 | </a> |
30 | </li> | |
31 | </ul> | |
32 | ||
33 | <div id="contributions-subtab" class="ui-tabs-panel ui-widget-content ui-corner-bottom"> | |
34 | <div class="help"> | |
6a488035 | 35 | {if $permission EQ 'edit'} |
2c407361 | 36 | {capture assign=newContribURL}{crmURL p="civicrm/contact/view/contribution" q="reset=1&action=add&cid=`$contactId`&context=contribution"}{/capture} |
a1c7d42f | 37 | {capture assign=link}class="action-item" href="{$newContribURL}"{/capture} |
2c407361 | 38 | {ts 1=$link}Click <a %1>Record Contribution</a> to record a new contribution received from this contact.{/ts} |
5963b706 CR |
39 | {if $newCredit} |
40 | {capture assign=newCreditURL}{crmURL p="civicrm/contact/view/contribution" q="reset=1&action=add&cid=`$contactId`&context=contribution&mode=live"}{/capture} | |
41 | {capture assign=link}class="action-item" href="{$newCreditURL}"{/capture} | |
42 | {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} | |
43 | {/if} | |
6a488035 | 44 | {else} |
5963b706 | 45 | {ts 1=$displayName}Contributions received from %1 since inception.{/ts} |
6a488035 | 46 | {/if} |
5963b706 | 47 | </div> |
6a488035 | 48 | |
5963b706 | 49 | {if $action eq 16 and $permission EQ 'edit'} |
6a488035 | 50 | <div class="action-link"> |
5963b706 CR |
51 | <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> |
52 | {if $newCredit} | |
53 | <a accesskey="N" href="{$newCreditURL}" class="button"><span><i class="crm-i fa-credit-card"></i> {ts}Submit Credit Card Contribution{/ts}</span></a> | |
54 | {/if} | |
55 | <br /><br /> | |
6a488035 | 56 | </div> |
5963b706 CR |
57 | <div class='clear'></div> |
58 | {/if} | |
6a488035 | 59 | |
5963b706 | 60 | {if $rows} |
6a488035 | 61 | {include file="CRM/Contribute/Page/ContributionTotals.tpl" mode="view"} |
5963b706 | 62 | <div class='clear'></div> |
6a488035 | 63 | {include file="CRM/Contribute/Form/Selector.tpl"} |
5963b706 | 64 | {else} |
6a488035 | 65 | <div class="messages status no-popup"> |
5963b706 CR |
66 | <div class="icon inform-icon"></div> |
67 | {ts}No contributions have been recorded from this contact.{/ts} | |
6a488035 | 68 | </div> |
5963b706 | 69 | {/if} |
6a488035 | 70 | |
5963b706 CR |
71 | {if $softCredit} |
72 | <div class="crm-block crm-contact-contribute-softcredit"> | |
73 | <h3>{ts}Soft credits{/ts} {help id="id-soft_credit"}</h3> | |
74 | {include file="CRM/Contribute/Page/ContributionSoft.tpl"} | |
75 | </div> | |
76 | {/if} | |
77 | </div> | |
78 | <div id="recurring-subtab" class="ui-tabs-panel ui-widget-content ui-corner-bottom"> | |
79 | {if $recur} | |
c2047803 | 80 | <div class="crm-block crm-contact-contribute-recur crm-contact-contribute-recur-active"> |
5963b706 CR |
81 | <h3>{ts}Active Recurring Contributions{/ts}</h3> |
82 | {include file="CRM/Contribute/Page/ContributionRecur.tpl" recurRows=$activeRecurRows} | |
83 | </div> | |
c2047803 | 84 | <div class="crm-block crm-contact-contribute-recur crm-contact-contribute-recur-inactive"> |
5963b706 CR |
85 | <h3>{ts}Inactive Recurring Contributions{/ts}</h3> |
86 | {include file="CRM/Contribute/Page/ContributionRecur.tpl" recurRows=$inactiveRecurRows} | |
87 | </div> | |
88 | {/if} | |
89 | </div> | |
90 | <div class="clear"></div> | |
91 | </div> | |
6a488035 TO |
92 | </div> |
93 | {/if} |