From af11a25a0f8568b52e4e15a2d0232e4ff648d2c7 Mon Sep 17 00:00:00 2001 From: eileen Date: Thu, 27 Jul 2017 23:47:41 +1200 Subject: [PATCH] Code cleanup towards CRM-20610. We have code repetition of the receipt_date construct in the tpl. Once for credit card payments & once not, with no substantive difference. This commit consolidates them and moves them out of the payment block, which going forwards will better distinguish between the contribution and the payments towards it. --- .../CRM/Contribute/Form/Contribution.tpl | 71 +++++++------------ 1 file changed, 26 insertions(+), 45 deletions(-) diff --git a/templates/CRM/Contribute/Form/Contribution.tpl b/templates/CRM/Contribute/Form/Contribution.tpl index 94cbe64235..67c4d58b7f 100644 --- a/templates/CRM/Contribute/Form/Contribution.tpl +++ b/templates/CRM/Contribute/Form/Contribution.tpl @@ -157,27 +157,6 @@ {* CRM-7362 --add campaign to contributions *} {include file="CRM/Campaign/Form/addCampaignToComponent.tpl" campaignTrClass="crm-contribution-form-block-campaign_id"} - {if $contributionMode} - {if $email and $outBound_option != 2} - - {$form.is_email_receipt.label} - {$form.is_email_receipt.html}  {ts 1=$email}Automatically email a receipt for this contribution to %1?{/ts} - - - {elseif $context eq 'standalone' and $outBound_option != 2 } - {$form.is_email_receipt.label}{$form.is_email_receipt.html} {ts}Automatically email a receipt for this contribution to {/ts}? - {/if} - - {$form.from_email_address.label} - {$form.from_email_address.html} - - - {$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 !$contributionMode || $payNow} {$form.contribution_status_id.label} @@ -238,6 +217,32 @@ {$form.revenue_recognition_date.html} {/if} + + {if $email and $outBound_option != 2} + + {$form.is_email_receipt.label} + {$form.is_email_receipt.html}  + {ts 1=$email}Automatically email a receipt for this payment to %1?{/ts} + + + {elseif $context eq 'standalone' and $outBound_option != 2 } + + {$form.is_email_receipt.label} + {$form.is_email_receipt.html} {ts}Automatically email a receipt for this payment to {/ts}? + + + {/if} + + {$form.from_email_address.label} + {$form.from_email_address.html} + + + {$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 !$contributionMode} @@ -261,30 +266,6 @@ {$form.trxn_id.label} {$form.trxn_id.html} {help id="id-trans_id"} - {if $email and $outBound_option != 2} - - - {$form.is_email_receipt.label}{$form.is_email_receipt.html}  - {ts 1=$email}Automatically email a receipt for this payment to %1?{/ts} - - - {elseif $context eq 'standalone' and $outBound_option != 2 } - - {$form.is_email_receipt.label} - {$form.is_email_receipt.html} {ts}Automatically email a receipt for this payment to {/ts}? - - - {/if} - - {$form.receipt_date.label} - {include file="CRM/common/jcalendar.tpl" elementName=receipt_date}
- {ts}Date that a receipt was sent to the contributor.{/ts} - - - - {$form.from_email_address.label} - {$form.from_email_address.html} - {/if} -- 2.25.1