From: Jason Boyer Date: Thu, 19 Sep 2013 13:45:25 +0000 (-0400) Subject: Separate stripe js into stripe.tt2, add seed data for ou settings X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b1dd9ea3eb01a1130976dd0de17846e82b819cf0;p=working%2FEvergreen.git Separate stripe js into stripe.tt2, add seed data for ou settings --- diff --git a/Open-ILS/src/sql/Pg/950.data.seed-values.sql b/Open-ILS/src/sql/Pg/950.data.seed-values.sql index d482914e06..b468567e75 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -3854,6 +3854,33 @@ INSERT into config.org_unit_setting_type 'coust', 'description'), 'bool', null) + ( 'credit.processor.stripe.enabled', 'credit', + oils_i18n_gettext('credit.processor.stripe.enabled', + 'Enable Stripe payments', + 'coust', 'label'), + oils_i18n_gettext('credit.processor.stripe.enabled', + 'Enable Stripe payments', + 'coust', 'description'), + 'bool', null) + +,( 'credit.processor.stripe.pubkey', 'credit', + oils_i18n_gettext('credit.processor.stripe.pubkey', + 'Stripe publishable key', + 'coust', 'label'), + oils_i18n_gettext('credit.processor.stripe.pubkey', + 'Stripe publishable key', + 'coust', 'description'), + 'string', null) + +,( 'credit.processor.stripe.privatekey', 'credit', + oils_i18n_gettext('credit.processor.stripe.privatekey', + 'Stripe secret key', + 'coust', 'label'), + oils_i18n_gettext('credit.processor.stripe.privatekey', + 'Stripe secret key', + 'coust', 'description'), + 'string', null) + ,( 'format.date', 'gui', oils_i18n_gettext('format.date', 'Format Dates with this pattern.', diff --git a/Open-ILS/src/templates/opac/parts/base.tt2 b/Open-ILS/src/templates/opac/parts/base.tt2 index cd99f7a319..e5b29bc836 100644 --- a/Open-ILS/src/templates/opac/parts/base.tt2 +++ b/Open-ILS/src/templates/opac/parts/base.tt2 @@ -19,42 +19,9 @@ [% END %] [% INCLUDE 'opac/parts/goog_analytics.tt2' %] - [% IF myopac_main_page == "payment_form" AND ctx.get_org_setting(ctx.user.home_ou.id, 'opac.processor.stripe.enabled')%] - - - [% END %] - - + [% content %] [% INCLUDE 'opac/parts/footer.tt2' %] diff --git a/Open-ILS/src/templates/opac/parts/stripe.tt2 b/Open-ILS/src/templates/opac/parts/stripe.tt2 new file mode 100644 index 0000000000..e857fffbe5 --- /dev/null +++ b/Open-ILS/src/templates/opac/parts/stripe.tt2 @@ -0,0 +1,36 @@ +[%- PROCESS "opac/parts/header.tt2"; + IF myopac_main_page == "payment_form" AND ctx.get_org_setting(ctx.user.home_ou.id, 'opac.processor.stripe.enabled')%] + + + +[%- END %]