change succesful subscription message

This commit is contained in:
Henry Oswald 2015-12-21 10:23:42 +00:00
parent 1b70e08f82
commit 134e733b01
2 changed files with 9 additions and 4 deletions

View file

@ -10,9 +10,13 @@ block content
h2 #{translate("thanks_for_subscribing")}
.alert.alert-success
p !{translate("next_payment_of_x_collectected_on_y", {paymentAmmount:"<strong>"+subscription.price+"</strong>", collectionDate:"<strong>"+subscription.nextPaymentDueAt+"</strong>"})}
p #{translate("if_you_dont_want_to_be_charged")}
a(href="/user/subscription") #{translate("click_here_to_cancel")}.
span(sixpack-switch="upgrade-success-message")
span(sixpack-default)
p #{translate("if_you_dont_want_to_be_charged")}
a(href="/user/subscription") #{translate("click_here_to_cancel")}.
span(sixpack-when="manage-subscription")
p #{translate("to_modify_your_subscription_go_to")}
a(href="/user/subscription") #{translate("manage_subscription")}.
p
- if (subscription.groupPlan == true)
a.btn.btn-success.btn-large(href="/subscription/group") #{translate("add_your_first_group_member_now")}

View file

@ -124,7 +124,8 @@ define [
$http.post("/user/subscription/cancel", body)
.success ->
sixpack.convert 'cancelation-options-view', ->
location.reload()
sixpack.convert 'upgrade-success-message', ->
location.reload()
.error ->
console.log "something went wrong changing plan"