CRM-20984: Move placement of payment processor field
authordeb.monish <monish.deb@jmaconsulting.biz>
Sun, 30 Jul 2017 20:43:26 +0000 (02:13 +0530)
committerdeb.monish <monish.deb@jmaconsulting.biz>
Sun, 30 Jul 2017 20:43:26 +0000 (02:13 +0530)
templates/CRM/Contribute/Form/AdditionalPayment.tpl
templates/CRM/Contribute/Form/Contribution.tpl
templates/CRM/Event/Form/Participant.tpl
templates/CRM/Member/Form/Membership.tpl
templates/CRM/Member/Form/MembershipCommon.tpl

index 87dcdbc950bb1d629129ceaa4faba7ed6a5688d0..3dfc75634f2fa7b5f73682f3f06213abd4f580ad 100644 (file)
@@ -56,9 +56,6 @@
     <tr>
       <td class="font-size12pt label"><strong>{if $component eq 'event'}{ts}Participant{/ts}{else}{ts}Contact{/ts}{/if}</strong></td><td class="font-size12pt"><strong>{$displayName}</strong></td>
     </tr>
-    {if $contributionMode}
-      <tr class="crm-payment-form-block-payment_processor_id"><td class="label nowrap">{$form.payment_processor_id.label}<span class="crm-marker"> * </span></td><td>{$form.payment_processor_id.html}</td></tr>
-    {/if}
     {if $eventName}
       <tr>
         <td class='label'>{ts}Event{/ts}</td><td>{$eventName}</td>
@@ -83,6 +80,9 @@
           <td>{$form.from_email_address.html}</td>
         </tr>
       {/if}
+      {if $contributionMode}
+        <tr class="crm-payment-form-block-payment_processor_id"><td class="label nowrap">{$form.payment_processor_id.label}<span class="crm-marker"> * </span></td><td>{$form.payment_processor_id.html}</td></tr>
+      {/if}
     </tr>
    </table>
 
index 67c4d58b7fa234b28199d94097c2f953450bbc40..e9428e973487041863d35193adf1754635ede821 100644 (file)
@@ -80,9 +80,6 @@
       <td class="label">{$form.contact_id.label}</td>
       <td>{$form.contact_id.html}</td>
     {/if}
-    {if $contributionMode}
-      <tr class="crm-contribution-form-block-payment_processor_id"><td class="label nowrap">{$form.payment_processor_id.label}<span class="crm-marker"> * </span></td><td>{$form.payment_processor_id.html}</td></tr>
-    {/if}
     <tr class="crm-contribution-form-block-contribution_type_id crm-contribution-form-block-financial_type_id">
       <td class="label">{$form.financial_type_id.label}</td><td{$valueStyle}>{$form.financial_type_id.html}&nbsp;
       {if $is_test}
         <span class="description">{ts}Date that a receipt was sent to the contributor.{/ts}</span>
       </td>
     </tr>
-
+    {if $contributionMode}
+      <tr class="crm-contribution-form-block-payment_processor_id"><td class="label nowrap">{$form.payment_processor_id.label}<span class="crm-marker"> * </span></td><td>{$form.payment_processor_id.html}</td></tr>
+    {/if}
   </table>
 
   {if !$contributionMode}
index 5816fffa38eddd854e71c861cce8ecabb3854c0e..59694d4adf693cb346678148dbdb0bdd710fc349 100644 (file)
               </tr>
             {/if}
           {/if}
-          {if $participantMode}
-            <tr class="crm-participant-form-block-payment_processor_id">
-              <td class="label nowrap">{$form.payment_processor_id.label}</td>
-              <td>{$form.payment_processor_id.html}</td>
-            </tr>
-          {/if}
           <tr class="crm-participant-form-block-event_id">
             <td class="label">{$form.event_id.label}</td>
             <td class="view-value">
             <td class="label">{$form.source.label}</td><td>{$form.source.html|crmAddClass:huge}<br />
             <span class="description">{ts}Source for this registration (if applicable).{/ts}</span></td>
           </tr>
+          {if $participantMode}
+            <tr class="crm-participant-form-block-payment_processor_id">
+              <td class="label nowrap">{$form.payment_processor_id.label}</td>
+              <td>{$form.payment_processor_id.html}</td>
+            </tr>
+          {/if}
         </table>
        {if $participantId and $hasPayment}
         <table class='form-layout'>
index 5f9358ec0be0573fd0c60c8414855c4e011d5941..61b5cdb950c431ce8e85bf343e4cd06cc1a079b7 100644 (file)
           <td class="label">{$form.contact_id.label}</td>
           <td>{$form.contact_id.html}</td>
         {/if}
-        {if $membershipMode}
-          <tr>
-            <td class="label">{$form.payment_processor_id.label}</td>
-            <td>{$form.payment_processor_id.html}</td>
-          </tr>
-        {/if}
         <tr class="crm-membership-form-block-membership_type_id">
           <td class="label">{$form.membership_type_id.label}</td>
           <td><span id='mem_type_id'>{$form.membership_type_id.html}</span>
             <fieldset id="recordContribution"><legend>{ts}Membership Payment and Receipt{/ts}</legend>
         {/if}
         {include file="CRM/Member/Form/MembershipCommon.tpl"}
-
         {if $emailExists and $isEmailEnabledForSite}
           <tr id="send-receipt" class="crm-membership-form-block-send_receipt">
             <td class="label">{$form.send_receipt.label}</td><td>{$form.send_receipt.html}<br />
index 52e0d89c2096bc3378e99b501e7f50e3b62d8c1d..caf862471bc08106d10e0bb04cba8393ecfc2417 100644 (file)
 
   <div class="spacer"></div>
 {/if}
-
+{if $membershipMode}
+  <tr>
+    <td class="label">{$form.payment_processor_id.label}</td>
+    <td>{$form.payment_processor_id.html}</td>
+  </tr>
+{/if}
 <tr class="crm-membership-form-block-billing">
   <td colspan="2">
     {include file='CRM/Core/BillingBlockWrapper.tpl'}