Add missing 'submit credit card event registration' link to standalone event registra...
authorMatthew Wire (MJW Consulting) <mjw@mjwconsult.co.uk>
Sat, 1 Jun 2019 19:02:16 +0000 (20:02 +0100)
committerMatthew Wire (MJW Consulting) <mjw@mjwconsult.co.uk>
Sat, 1 Jun 2019 19:02:16 +0000 (20:02 +0100)
templates/CRM/Event/Form/Participant.tpl

index df00cd3c66991cd319bb384b924678b5153baeeb..6ffa6fb72588d54b042ad9bbe45f4ce62f18427f 100644 (file)
     {assign var=registerMode value="LIVE"}
   {/if}
   <div class="crm-block crm-form-block crm-participant-form-block">
+    {if $newCredit AND $action EQ 1 AND $participantMode EQ null}
+      <div class="action-link css_right crm-link-credit-card-mode">
+        {if $contactId}
+          {capture assign=ccModeLink}{crmURL p='civicrm/contact/view/participant' q="reset=1&action=add&cid=`$contactId`&context=`$context`&mode=live"}{/capture}
+        {else}
+          {capture assign=ccModeLink}{crmURL p='civicrm/contact/view/participant' q="reset=1&action=add&context=standalone&mode=live"}{/capture}
+        {/if}
+        <a class="open-inline-noreturn action-item crm-hover-button" href="{$ccModeLink}">&raquo; {ts}submit credit card event registration{/ts}</a>
+      </div>
+    {/if}
     <div class="view-content">
       {if $participantMode}
         <div class="help">