$finTypeId = CRM_Core_DAO::getFieldValue('CRM_Member_DAO_MembershipType', $values['membership_type_id'], 'financial_type_id');
$finType = CRM_Contribute_PseudoConstant::financialType($finTypeId);
if (!CRM_Core_Permission::check('view contributions of type ' . $finType)) {
- CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
+ CRM_Core_Error::statusBounce(ts('You do not have permission to access this page.'));
}
}
else {
{$total_amount|crmMoney:$currency}
</strong></a>
{if $contribution_recur_id}
- <strong>{ts}Recurring Contribution{/ts}</strong>
+ <a class="crm-hover-button" href='{crmURL p="civicrm/contact/view/contributionrecur" q="reset=1&id=`$contribution_recur_id`&cid=`$contact_id`&context=contribution"}'>
+ <strong>{ts}Recurring Contribution{/ts}</strong>
+ </a>
<br/>
{ts}Installments{/ts}: {if $recur_installments}{$recur_installments}{else}{ts}(ongoing){/ts}{/if}, {ts}Interval{/ts}: {$recur_frequency_interval} {$recur_frequency_unit}(s)
{/if}
<tr><td class="label">{ts}Start date{/ts}</td><td>{$start_date|crmDate}</td></tr>
<tr><td class="label">{ts}End date{/ts}</td><td>{$end_date|crmDate}</td></tr>
<tr><td class="label">{ts}Auto-renew{/ts}</td><td>{$auto_renew}</td></tr>
+ {if $contribution_recur_id}
+ <tr>
+ <td class="label">{ts}Recurring Contribution{/ts}</td>
+ <td>
+ <a class="crm-hover-button" href='{crmURL p="civicrm/contact/view/contributionrecur" q="reset=1&id=`$recurContribution`&cid=`$contactId`&context=contribution"}'>View Recurring Contribution</a>
+ </td>
+ </tr>
+ {/if}
</table>
{include file="CRM/Custom/Page/CustomDataView.tpl"}