From 950d966905033032067cfaa70cd7f3580d54ac53 Mon Sep 17 00:00:00 2001 From: eileen Date: Tue, 4 Apr 2017 17:49:12 +1200 Subject: [PATCH] CRM-20379 move payment details above less important info --- .../CRM/Contribute/Form/Contribution.tpl | 120 +++++++++--------- 1 file changed, 60 insertions(+), 60 deletions(-) diff --git a/templates/CRM/Contribute/Form/Contribution.tpl b/templates/CRM/Contribute/Form/Contribution.tpl index db34df3c08..1b4a2f35ca 100644 --- a/templates/CRM/Contribute/Form/Contribution.tpl +++ b/templates/CRM/Contribute/Form/Contribution.tpl @@ -234,6 +234,63 @@ {/if} + {if !$contributionMode} +
+
+ {ts}Payment Details{/ts} +
+
+ + + + + + + + + + + {if $showCheckNumber || !$isOnline} + + + + + {/if} + + + + + {if $email and $outBound_option != 2} + + + + {elseif $context eq 'standalone' and $outBound_option != 2 } + + + + + {/if} + + + + + + + + +
{$form.receive_date.label}{include file="CRM/common/jcalendar.tpl" elementName=receive_date}
+ {ts}The date this contribution was received.{/ts} +
{$form.payment_instrument_id.label}{$form.payment_instrument_id.html} {help id="payment_instrument_id"}
{$form.check_number.label}{$form.check_number.html}
{$form.trxn_id.label}{$form.trxn_id.html} {help id="id-trans_id"}
+ {$form.is_email_receipt.label}{$form.is_email_receipt.html}  + {ts 1=$email}Automatically email a receipt for this payment to %1?{/ts} +
{$form.receipt_date.label}{include file="CRM/common/jcalendar.tpl" elementName=receipt_date}
+ {ts}Date that a receipt was sent to the contributor.{/ts} +
+
+
+ {/if} + {include file='CRM/Core/BillingBlockWrapper.tpl'} @@ -301,63 +358,6 @@ {/if} - {if !$contributionMode} -
-
- {ts}Payment Details{/ts} -
-
- - - - - - - - - - - {if $showCheckNumber || !$isOnline} - - - - - {/if} - - - - - {if $email and $outBound_option != 2} - - - - {elseif $context eq 'standalone' and $outBound_option != 2 } - - - - - {/if} - - - - - - - - -
{$form.receive_date.label}{include file="CRM/common/jcalendar.tpl" elementName=receive_date}
- {ts}The date this contribution was received.{/ts} -
{$form.payment_instrument_id.label}{$form.payment_instrument_id.html} {help id="payment_instrument_id"}
{$form.check_number.label}{$form.check_number.html}
{$form.trxn_id.label}{$form.trxn_id.html} {help id="id-trans_id"}
- {$form.is_email_receipt.label}{$form.is_email_receipt.html}  - {ts 1=$email}Automatically email a receipt for this payment to %1?{/ts} -
{$form.receipt_date.label}{include file="CRM/common/jcalendar.tpl" elementName=receipt_date}
- {ts}Date that a receipt was sent to the contributor.{/ts} -
-
-
- {/if} - {if !$payNow}
{/if} @@ -485,7 +485,7 @@ $('#is_email_receipt', $form).click(function() { checkEmailDependancies(); }); - + function checkEmailDependancies( ) { if ($('#is_email_receipt', $form).prop('checked')) { $('#fromEmail', $form).show(); @@ -498,11 +498,11 @@ } {/literal}{if !$contributionMode}{literal} showHideCancelInfo($('#contribution_status_id', $form)); - + $('#contribution_status_id', $form).change(function() { showHideCancelInfo($('#contribution_status_id', $form)); }); - + function showHideCancelInfo(obj) { var cancelInfo_show_ids = [{/literal}{$cancelInfo_show_ids}{literal}]; if (cancelInfo_show_ids.indexOf(obj.val()) > -1) { -- 2.25.1