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=cdbcc32c5ae433b3c287079eaaa0773b547615bf;p=evergreen%2Fmasslnc.git Separate stripe js into stripe.tt2, add seed data for ou settings Signed-off-by: Remington Steed Signed-off-by: Dan Wells --- 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 2cfc7f8e46..964389c1d1 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -3855,6 +3855,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 ed82a3b43a..e596af085e 100644 --- a/Open-ILS/src/templates/opac/parts/base.tt2 +++ b/Open-ILS/src/templates/opac/parts/base.tt2 @@ -20,42 +20,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 %] - - +

[% l('Catalog') %]

[%#Each content page needs (at minimum) an

describing the content%] 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 %]