From 33627071fbb15dee23ed2d319628ac91fef185ca Mon Sep 17 00:00:00 2001 From: Dave Greenberg Date: Fri, 9 May 2014 18:11:30 -0700 Subject: [PATCH] CRM-14666 - add conditional explanation for recurring contributions. ---------------------------------------- * CRM-14666: https://issues.civicrm.org/jira/browse/CRM-14666 --- .../CRM/Contribute/Form/Contribution/Main.tpl | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/templates/CRM/Contribute/Form/Contribution/Main.tpl b/templates/CRM/Contribute/Form/Contribution/Main.tpl index 48bcf53b20..dfd3d19099 100644 --- a/templates/CRM/Contribute/Form/Contribution/Main.tpl +++ b/templates/CRM/Contribute/Form/Contribution/Main.tpl @@ -151,8 +151,19 @@ {$form.frequency_unit.html} {/if} {if $is_recur_installments} + {ts}for{/ts} {$form.installments.html} {$form.installments.label} + {/if} +
+ {ts}Your recurring contribution will be processed automatically.{/ts} + {if $is_recur_installments} + {ts}You can specify the number of installments, or you can leave the number of installments blank if you want to make an open-ended commitment. In either case, you can choose to cancel at any time.{/ts} + {/if} + {if $is_email_receipt} + {ts}You will receive an email receipt for each recurring contribution.{/ts} + {/if} +
@@ -356,6 +367,20 @@ } } + cj('input[id="is_recur"]').on('change', function() { + showRecurHelp(); + }); + + function showRecurHelp( ) { + var showHelp = cj('input[id="is_recur"]:checked'); + if ( showHelp.val() > 0) { + cj('#recurHelp').show(); + } + else { + cj('#recurHelp').hide(); + } + } + function pcpAnonymous( ) { // clear nickname field if anonymous is true if (document.getElementsByName("pcp_is_anonymous")[1].checked) { @@ -411,6 +436,7 @@ CRM.$(function($) { toggleConfirmButton(); enableHonorType(); + showRecurHelp(); }); function showHidePayPalExpressOption() { -- 2.25.1