add some settings for text

This commit is contained in:
Rimian Perkins 2019-09-12 13:40:18 +10:00
parent 8785e98464
commit 2a1a17793f
5 changed files with 19 additions and 10 deletions

View File

@ -21,6 +21,10 @@ Visit `/patrons`
## Testing
Test with these credit card numbers:
* 4111 1111 1111 1111
## Warranty
This software comes without warranties or conditions of any kind.

View File

@ -2,7 +2,7 @@
<h3>{{i18n 'discourse_patrons.title' site_name=siteSettings.title}}</h3>
<div class="donations-page-description">
{{cook-text siteSettings.discourse_patrons_page_description}}
{{cook-text siteSettings.discourse_patrons_payment_page}}
</div>
<div class="donations-page-payment">

View File

@ -1,3 +1,7 @@
show
<h3>{{i18n 'discourse_patrons.title' site_name=siteSettings.title}}</h3>
<div class="donations-page-description">
{{cook-text siteSettings.discourse_patrons_success_page}}
</div>

View File

@ -3,26 +3,24 @@ en:
discourse_patrons_enabled: "Enable the Discourse Patrons plugin."
discourse_patrons_secret_key: "Stripe Secret Key"
discourse_patrons_public_key: "Stripe Public Key"
discourse_patrons_description: "Description shown in Stripe Checkout form"
discourse_patrons_currency: "Currency Code"
discourse_patrons_zip_code: "Show Zip Code"
discourse_patrons_billing_address: "Collect billing address"
discourse_patrons_payment_page: "Text to be added to enter payments page. Markdown is supported."
discourse_patrons_success_page: "Text to be added to success page. Markdown is supported."
discourse_patrons_reward_badge_name: "Grant this badge to user when a payment is successful"
discourse_patrons_reward_group_name: "Add the user to this group when a payment is successful"
discourse_patrons_page_description: "Text to be added to /patrons page. Markdown is supported."
errors:
discourse_patrons_amount_must_be_currency: "Currency amounts must be currencies (eg 1.50)"
js:
discourse_patrons:
nav_item: Payment
title: "Make a Payment"
amount: Amount
amount: Amount $
card: Card
your_information: Your information
payment_information: Credit card information
submit: Make payment
confirm: Confirm payment
submit: Make payment $
confirm: Confirm payment $
invoice: "invoice"
invoice_prefix: "You gave"
receipt: "Receipt sent to {{email}}."

View File

@ -7,7 +7,10 @@ plugins:
discourse_patrons_secret_key:
default: ''
client: false
discourse_patrons_description:
discourse_patrons_payment_page:
client: true
default: ''
discourse_patrons_success_page:
client: true
default: ''
discourse_patrons_amounts: