View recurring contribution button when displaying lineitems
authorMatthew Wire <mjw@mjwconsult.co.uk>
Fri, 2 Jul 2021 11:22:36 +0000 (12:22 +0100)
committerMatthew Wire <mjw@mjwconsult.co.uk>
Fri, 2 Jul 2021 15:51:14 +0000 (16:51 +0100)
templates/CRM/Contribute/Form/ContributionView.tpl

index c7e0c8fe9ce7e3d78803dda53aef8e06243bb12f..ea457bdf9f087dd132f88ad92d5cc014e900d8d0 100644 (file)
@@ -78,7 +78,9 @@
       <td class="label">{ts}Contribution Amount{/ts}</td>
       <td>{include file="CRM/Price/Page/LineItem.tpl" context="Contribution"}
         {if $contribution_recur_id}
-          <strong>{ts}Recurring Contribution{/ts}</strong>
+          <a class="open-inline action-item crm-hover-button" href='{crmURL p="civicrm/contact/view/contributionrecur" q="reset=1&id=`$contribution_recur_id`&cid=`$contact_id`&context=contribution"}'>
+            {ts}View Recurring Contribution{/ts}
+          </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}
@@ -89,8 +91,8 @@
       <td class="label">{ts}Total Amount{/ts}</td>
       <td><strong>{$total_amount|crmMoney:$currency}</strong>
         {if $contribution_recur_id}
-          <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 class="open-inline action-item crm-hover-button" href='{crmURL p="civicrm/contact/view/contributionrecur" q="reset=1&id=`$contribution_recur_id`&cid=`$contact_id`&context=contribution"}'>
+            {ts}View Recurring Contribution{/ts}
           </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)