From: deb.monish Date: Sun, 30 Jul 2017 20:43:26 +0000 (+0530) Subject: CRM-20984: Move placement of payment processor field X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9580e4a276278dc945ab131d26b1bc7f26c787c1;p=civicrm-core.git CRM-20984: Move placement of payment processor field --- diff --git a/templates/CRM/Contribute/Form/AdditionalPayment.tpl b/templates/CRM/Contribute/Form/AdditionalPayment.tpl index 87dcdbc950..3dfc75634f 100644 --- a/templates/CRM/Contribute/Form/AdditionalPayment.tpl +++ b/templates/CRM/Contribute/Form/AdditionalPayment.tpl @@ -56,9 +56,6 @@ {if $component eq 'event'}{ts}Participant{/ts}{else}{ts}Contact{/ts}{/if}{$displayName} - {if $contributionMode} - {$form.payment_processor_id.label} * {$form.payment_processor_id.html} - {/if} {if $eventName} {ts}Event{/ts}{$eventName} @@ -83,6 +80,9 @@ {$form.from_email_address.html} {/if} + {if $contributionMode} + {$form.payment_processor_id.label} * {$form.payment_processor_id.html} + {/if} diff --git a/templates/CRM/Contribute/Form/Contribution.tpl b/templates/CRM/Contribute/Form/Contribution.tpl index 67c4d58b7f..e9428e9734 100644 --- a/templates/CRM/Contribute/Form/Contribution.tpl +++ b/templates/CRM/Contribute/Form/Contribution.tpl @@ -80,9 +80,6 @@ {$form.contact_id.label} {$form.contact_id.html} {/if} - {if $contributionMode} - {$form.payment_processor_id.label} * {$form.payment_processor_id.html} - {/if} {$form.financial_type_id.label}{$form.financial_type_id.html}  {if $is_test} @@ -242,7 +239,9 @@ {ts}Date that a receipt was sent to the contributor.{/ts} - + {if $contributionMode} + {$form.payment_processor_id.label} * {$form.payment_processor_id.html} + {/if} {if !$contributionMode} diff --git a/templates/CRM/Event/Form/Participant.tpl b/templates/CRM/Event/Form/Participant.tpl index 5816fffa38..59694d4adf 100644 --- a/templates/CRM/Event/Form/Participant.tpl +++ b/templates/CRM/Event/Form/Participant.tpl @@ -249,12 +249,6 @@ {/if} {/if} - {if $participantMode} - - {$form.payment_processor_id.label} - {$form.payment_processor_id.html} - - {/if} {$form.event_id.label} @@ -292,6 +286,12 @@ {$form.source.label}{$form.source.html|crmAddClass:huge}
{ts}Source for this registration (if applicable).{/ts} + {if $participantMode} + + {$form.payment_processor_id.label} + {$form.payment_processor_id.html} + + {/if} {if $participantId and $hasPayment} diff --git a/templates/CRM/Member/Form/Membership.tpl b/templates/CRM/Member/Form/Membership.tpl index 5f9358ec0b..61b5cdb950 100644 --- a/templates/CRM/Member/Form/Membership.tpl +++ b/templates/CRM/Member/Form/Membership.tpl @@ -93,12 +93,6 @@ {/if} - {if $membershipMode} - - - - - {/if} + + + +{/if}
{$form.contact_id.label} {$form.contact_id.html}
{$form.payment_processor_id.label}{$form.payment_processor_id.html}
{$form.membership_type_id.label} {$form.membership_type_id.html} @@ -183,7 +177,6 @@
{ts}Membership Payment and Receipt{/ts} {/if} {include file="CRM/Member/Form/MembershipCommon.tpl"} - {if $emailExists and $isEmailEnabledForSite}
{$form.send_receipt.label}{$form.send_receipt.html}
diff --git a/templates/CRM/Member/Form/MembershipCommon.tpl b/templates/CRM/Member/Form/MembershipCommon.tpl index 52e0d89c20..caf862471b 100644 --- a/templates/CRM/Member/Form/MembershipCommon.tpl +++ b/templates/CRM/Member/Form/MembershipCommon.tpl @@ -100,7 +100,12 @@
{/if} - +{if $membershipMode} +
{$form.payment_processor_id.label}{$form.payment_processor_id.html}
{include file='CRM/Core/BillingBlockWrapper.tpl'}