From 5879fe94cc047fa820aa57b1c9856dd9cc05ba9f Mon Sep 17 00:00:00 2001 From: Lebbeous Fogle-Weekley Date: Fri, 11 Oct 2013 00:53:52 -0400 Subject: [PATCH] If payment processor is Stripe, only show payment form if Javascript enabled. Stripe doesn't work without it. Signed-off-by: Lebbeous Fogle-Weekley --- Open-ILS/src/templates/opac/myopac/main_payment_form.tt2 | 13 ++++++++++--- Open-ILS/src/templates/opac/parts/js.tt2 | 4 ++++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/templates/opac/myopac/main_payment_form.tt2 b/Open-ILS/src/templates/opac/myopac/main_payment_form.tt2 index cecb607205..b1dd27c4e7 100644 --- a/Open-ILS/src/templates/opac/myopac/main_payment_form.tt2 +++ b/Open-ILS/src/templates/opac/myopac/main_payment_form.tt2 @@ -16,7 +16,14 @@ END %] "total is non-positive. We cannot process non-positive amounts.") %] [% ELSE %] -
+[% IF ctx.use_stripe %] + +[% END %] +
[% IF last_chance %]

[% l("Are you sure you are ready to charge [_1] to your credit card?", money(ctx.fines.balance_owed)) %]

@@ -128,7 +135,7 @@ END %] [% l('Credit Card #') %] - [% l('Security Code') %] - +[%- IF ctx.use_stripe %] + +[% END -%] + [%- IF ctx.is_staff %] [% IF ctx.page == 'record' %] -- 2.11.0