Skip to content

Commit

Permalink
CRM-20984: Move placement of payment processor field
Browse files Browse the repository at this point in the history
  • Loading branch information
monishdeb committed Jul 30, 2017
1 parent 8bd0b01 commit 9580e4a
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 21 deletions.
6 changes: 3 additions & 3 deletions templates/CRM/Contribute/Form/AdditionalPayment.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>

Expand Down
7 changes: 3 additions & 4 deletions templates/CRM/Contribute/Form/Contribution.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -242,7 +239,9 @@
<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}
Expand Down
12 changes: 6 additions & 6 deletions templates/CRM/Event/Form/Participant.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,6 @@
</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">
Expand Down Expand Up @@ -292,6 +286,12 @@
<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'>
Expand Down
7 changes: 0 additions & 7 deletions templates/CRM/Member/Form/Membership.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,6 @@
<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>
Expand Down Expand Up @@ -183,7 +177,6 @@
<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 />
Expand Down
7 changes: 6 additions & 1 deletion templates/CRM/Member/Form/MembershipCommon.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,12 @@

<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'}
Expand Down

0 comments on commit 9580e4a

Please sign in to comment.