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,39 +113,28 @@ block content
div div
a(href="/subscription/group").btn.btn-primary !{translate("manage_group")} a(href="/subscription/group").btn.btn-primary !{translate("manage_group")}
.card(ng-if="view == 'cancelation'") .card(ng-if="view == 'cancelation'")
.page-header .page-header
h1 #{translate("Cancel Subscription")} 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")}
p
|  
p
a(href, ng-click="cancelSubscription()", ng-disabled='inflight') #{translate("no_thanks_cancel_now")}
div(ng-show="showExtendFreeTrial", style="text-align: center") div(ng-show="showDowngradeToStudent", style="text-align: center")
p !{translate("have_more_days_to_try", {days:14})} span(ng-controller="ChangePlanFormController")
button(type="submit", ng-click="exendTrial()", ng-disabled='inflight').btn.btn-success #{translate("ill_take_it")} p !{translate("interested_in_cheaper_plan",{price:'{{studentPrice}}'})}
button(type="submit", ng-click="downgradeToStudent()", ng-disabled='inflight').btn.btn-success #{translate("yes_please")}
p p
|   |  
p p
a(href, ng-click="cancelSubscription()", ng-disabled='inflight') #{translate("no_thanks_cancel_now")} a(href, ng-click="cancelSubscription()", ng-disabled='inflight') #{translate("no_thanks_cancel_now")}
div(ng-show="showBasicCancel")
div(ng-show="showDowngradeToStudent", style="text-align: center")
span(ng-controller="ChangePlanFormController")
p !{translate("interested_in_cheaper_plan",{price:'{{studentPrice}}'})}
button(type="submit", ng-click="downgradeToStudent()", ng-disabled='inflight').btn.btn-success #{translate("yes_please")}
p
|  
p
a(href, ng-click="cancelSubscription()", ng-disabled='inflight') #{translate("no_thanks_cancel_now")}
div(ng-show="showBasicCancel")
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")}
span(ng-if="sixpackOpt == 'basic'")
p #{translate("sure_you_want_to_cancel")} p #{translate("sure_you_want_to_cancel")}
a(href="/project").btn.btn-info #{translate("i_want_to_stay")} a(href="/project").btn.btn-info #{translate("i_want_to_stay")}
|   |  

View file

@ -10,13 +10,8 @@ block content
h2 #{translate("thanks_for_subscribing")} h2 #{translate("thanks_for_subscribing")}
.alert.alert-success .alert.alert-success
p !{translate("next_payment_of_x_collectected_on_y", {paymentAmmount:"<strong>"+subscription.price+"</strong>", collectionDate:"<strong>"+subscription.nextPaymentDueAt+"</strong>"})} 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") p #{translate("to_modify_your_subscription_go_to")}
span(sixpack-default) a(href="/user/subscription") #{translate("manage_subscription")}.
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 p
- if (subscription.groupPlan == true) - if (subscription.groupPlan == true)
a.btn.btn-success.btn-large(href="/subscription/group") #{translate("add_your_first_group_member_now")} a.btn.btn-success.btn-large(href="/subscription/group") #{translate("add_your_first_group_member_now")}

View file

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