X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=templates%2FCRM%2FContribute%2FPage%2FTab.tpl;h=4f989cdf6e6db9c423e9978125e83ba1fe88a443;hb=04df9bcbb036c4cc971e00b1bf01eeef121dabe4;hp=6d910f93995b61e47891014f0160c0219217de0f;hpb=52c503aac03bba16dff98f57d5647fb98168e9b7;p=civicrm-core.git diff --git a/templates/CRM/Contribute/Page/Tab.tpl b/templates/CRM/Contribute/Page/Tab.tpl index 6d910f9399..4f989cdf6e 100644 --- a/templates/CRM/Contribute/Page/Tab.tpl +++ b/templates/CRM/Contribute/Page/Tab.tpl @@ -29,55 +29,91 @@ {include file="CRM/Contribute/Form/ContributionView.tpl"} {else}
-
+ +
+ {* Tab management *} + + + +
+
{if $permission EQ 'edit'} {capture assign=newContribURL}{crmURL p="civicrm/contact/view/contribution" q="reset=1&action=add&cid=`$contactId`&context=contribution"}{/capture} {capture assign=link}class="action-item" href="{$newContribURL}"{/capture} {ts 1=$link}Click Record Contribution to record a new contribution received from this contact.{/ts} - {if $newCredit} - {capture assign=newCreditURL}{crmURL p="civicrm/contact/view/contribution" q="reset=1&action=add&cid=`$contactId`&context=contribution&mode=live"}{/capture} - {capture assign=link}class="action-item" href="{$newCreditURL}"{/capture} - {ts 1=$link}Click Submit Credit Card Contribution to process a new contribution on behalf of the contributor using their credit card.{/ts} - {/if} + {if $newCredit} + {capture assign=newCreditURL}{crmURL p="civicrm/contact/view/contribution" q="reset=1&action=add&cid=`$contactId`&context=contribution&mode=live"}{/capture} + {capture assign=link}class="action-item" href="{$newCreditURL}"{/capture} + {ts 1=$link}Click Submit Credit Card Contribution to process a new contribution on behalf of the contributor using their credit card.{/ts} + {/if} {else} - {ts 1=$displayName}Contributions received from %1 since inception.{/ts} + {ts 1=$displayName}Contributions received from %1 since inception.{/ts} {/if} -
+
- {if $action eq 16 and $permission EQ 'edit'} + {if $action eq 16 and $permission EQ 'edit'} -
- {/if} +
+ {/if} - {if $rows} + {if $rows} {include file="CRM/Contribute/Page/ContributionTotals.tpl" mode="view"} -
+
{include file="CRM/Contribute/Form/Selector.tpl"} - {else} + {else}
-
- {ts}No contributions have been recorded from this contact.{/ts} +
+ {ts}No contributions have been recorded from this contact.{/ts}
- {/if} - - {if $recur} -
-

{ts}Recurring Contributions{/ts}

- {include file="CRM/Contribute/Page/ContributionRecur.tpl"} -
- {/if} + {/if} - {if $softCredit} -
-

{ts}Soft credits{/ts} {help id="id-soft_credit"}

- {include file="CRM/Contribute/Page/ContributionSoft.tpl"} -
- {/if} + {if $softCredit} +
+

{ts}Soft credits{/ts} {help id="id-soft_credit"}

+ {include file="CRM/Contribute/Page/ContributionSoft.tpl"} +
+ {/if} +
+
+ {if $recur} +
+

{ts}Active Recurring Contributions{/ts}

+ {include file="CRM/Contribute/Page/ContributionRecur.tpl" recurRows=$activeRecurRows} +
+
+

{ts}Inactive Recurring Contributions{/ts}

+ {include file="CRM/Contribute/Page/ContributionRecur.tpl" recurRows=$inactiveRecurRows} +
+ {/if} +
+
+
{/if}