+ {{#d-button action="submitStripeCard" class="btn btn-primary btn-payment btn-discourse-patrons"}}
+ {{i18n 'discourse_patrons.confirm'}}{{amount}}
+ {{/d-button}}
-
-
-
- {{#d-button action="submitStripeCard" class="btn btn-primary btn-payment"}}
- {{i18n 'discourse_patrons.confirm'}}
{{amount}}
- {{/d-button}}
-
- {{#if cardError}}
-
- {{/if}}
+ {{#if cardError}}
+
+ {{/if}}
+
diff --git a/assets/javascripts/discourse/templates/patrons/index.hbs b/assets/javascripts/discourse/templates/patrons/index.hbs
index 329520a..f131386 100644
--- a/assets/javascripts/discourse/templates/patrons/index.hbs
+++ b/assets/javascripts/discourse/templates/patrons/index.hbs
@@ -1,9 +1,9 @@
-
+
{{cook-text siteSettings.discourse_patrons_payment_page}}
-
{{donation-form
diff --git a/assets/javascripts/discourse/templates/patrons/show.hbs b/assets/javascripts/discourse/templates/patrons/show.hbs
index dad802b..10eef59 100644
--- a/assets/javascripts/discourse/templates/patrons/show.hbs
+++ b/assets/javascripts/discourse/templates/patrons/show.hbs
@@ -1,10 +1,10 @@
-
{{i18n 'discourse_patrons.title' site_name=siteSettings.title}}
+
{{i18n 'discourse_patrons.heading.success' site_name=siteSettings.title}}
-
+
{{cook-text siteSettings.discourse_patrons_success_page}}
-
+
{{#d-button action="goBack" class="btn btn-primary"}}
{{i18n 'discourse_patrons.button.success'}}
diff --git a/assets/stylesheets/common/discourse-patrons.scss b/assets/stylesheets/common/discourse-patrons.scss
index 5cd1b36..cfc9546 100644
--- a/assets/stylesheets/common/discourse-patrons.scss
+++ b/assets/stylesheets/common/discourse-patrons.scss
@@ -32,6 +32,11 @@
}
}
+#stripe-elements {
+ border: 1px $primary-low-mid solid;
+ padding: 10px;
+}
+
#card-element {
padding: 20px 0;
}
@@ -60,3 +65,8 @@
padding: 10px;
}
}
+
+.btn-discourse-patrons {
+ white-space: nowrap;
+ border: 1px blue solid;
+}
diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml
index 4522540..82800d0 100644
--- a/config/locales/client.en.yml
+++ b/config/locales/client.en.yml
@@ -10,17 +10,16 @@ en:
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"
errors:
- discourse_patrons_amount_must_be_currency: "Currency amounts must be currencies (eg 1.50)"
+ discourse_patrons_amount_must_be_currency: "Currency amounts must be currencies without dollar symbol (eg 1.50)"
js:
discourse_patrons:
nav_item: Payment
- title: "Make a Payment"
- amount: Amount $
- card: Card
- your_information: Your information
- payment_information: Credit card information
- submit: Make payment $
- confirm: Confirm payment $
+ heading:
+ payment: Make a Payment
+ success: Thank you!
+ payment:
+ your_information: Your information
+ payment_information: Payment information
billing:
name: Full name
email: Email
@@ -29,4 +28,6 @@ en:
amount: Amount $
last4: Card number
buttons:
+ make_payment: Make payment $
+ confirm_payment: Confirm payment $
success: Go back