-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
20 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,23 @@ | ||
- content_for :page_title, 'Get less email & more useful alerts' | ||
- content_for :page_title, 'Subscribe here' | ||
|
||
.registration-page | ||
= form_tag subscriptions_path, id: 'subscription-payment-form', class: 'registration-intro' do | ||
%h1 Sift through less email and get more useful alerts | ||
%h1.page-title Subscribe here | ||
|
||
%p You’ll get all your alerts in one email so you never have to sift through your inbox again. | ||
%p | ||
Subscribe here to get alerts of planning applications near several addresses. | ||
Once you’re subscribed you can sign up for alerts from as many locations as you need | ||
and use PlanningAlerts in your work. | ||
|
||
%p Discover new opportunities by watching as many locations as you need. | ||
|
||
%p Make sure your coverage is complete. You can easily add and edit addresses from your full list of alerts in one place. | ||
- if @subscription && @subscription.trial? | ||
%p | ||
You have | ||
= pluralize(@subscription.trial_days_remaining, 'day') | ||
left on your trial subscription. | ||
|
||
-# TODO: Move to head to block page until it loads | ||
%script{src: "https://checkout.stripe.com/checkout.js"} | ||
|
||
%input{type: 'hidden', name: 'stripeAmount', value: @amount} | ||
%button{disabled: true, type: 'submit', id: "button-pro-signup", data: {key: Configuration::STRIPE_PUBLISHABLE_KEY, amount: @amount, email: (@email if @email)}} | ||
%button{disabled: true, type: 'submit', class: "button-action", id: "button-pro-signup", data: {key: Configuration::STRIPE_PUBLISHABLE_KEY, amount: @amount, email: (@email if @email)}} | ||
Subscribe now #{@display_amount}/month | ||
%p No lock-in. Cancel anytime. |