remove some old sixpack tests

This commit is contained in:
Henry Oswald 2016-11-02 10:09:02 +00:00
parent a63f7685b8
commit 11a097c9a6
3 changed files with 17 additions and 37 deletions

View file

@ -113,14 +113,10 @@ block content
div
a(href="/subscription/group").btn.btn-primary !{translate("manage_group")}
.card(ng-if="view == 'cancelation'")
.page-header
h1 #{translate("Cancel Subscription")}
span(ng-if="sixpackOpt == 'downgrade-options'")
div(ng-show="showExtendFreeTrial", style="text-align: center")
p !{translate("have_more_days_to_try", {days:14})}
button(type="submit", ng-click="exendTrial()", ng-disabled='inflight').btn.btn-success #{translate("ill_take_it")}
@ -129,7 +125,6 @@ block content
p
a(href, ng-click="cancelSubscription()", ng-disabled='inflight') #{translate("no_thanks_cancel_now")}
div(ng-show="showDowngradeToStudent", style="text-align: center")
span(ng-controller="ChangePlanFormController")
p !{translate("interested_in_cheaper_plan",{price:'{{studentPrice}}'})}
@ -145,12 +140,6 @@ block content
|  
a(ng-click="cancelSubscription()", ng-disabled='inflight').btn.btn-primary #{translate("cancel_my_account")}
span(ng-if="sixpackOpt == 'basic'")
p #{translate("sure_you_want_to_cancel")}
a(href="/project").btn.btn-info #{translate("i_want_to_stay")}
|  
a(ng-click="cancelSubscription()", ng-disabled='inflight').btn.btn-primary #{translate("cancel_my_account")}
script(type="text/javascript").
$('#cancelSubscription').on("click", function() {
ga('send', 'event', 'subscription-funnel', 'cancelation')

View file

@ -10,11 +10,6 @@ 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>"})}
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

View file

@ -153,8 +153,6 @@ define [
$scope.inflight = true
$http.post("/user/subscription/cancel", body)
.success ->
sixpack.convert 'cancelation-options-view', ->
sixpack.convert 'upgrade-success-message', ->
location.reload()
.error ->
console.log "something went wrong changing plan"
@ -169,9 +167,7 @@ define [
)
$scope.switchToCancelationView = ->
sixpack.participate 'cancelation-options-view', ['basic', 'downgrade-options'], (view, rawResponse)->
$scope.view = "cancelation"
$scope.sixpackOpt = view