Sha256: 990416849ea5978b03a7aa76a8cc7f7bd13e31ceb14805f400970e3481c1ccd9
Contents?: true
Size: 1.33 KB
Versions: 5
Compression:
Stored size: 1.33 KB
Contents
.saasaparilla %h1 Change you plan - if Saasaparilla::CONFIG["include_free_account"] .plan %h4 Free Plan = button_to "Downgrade", {:action => :update, :subscription => {:plan_id => nil}}, {:method => :put, :confirm => 'Are you sure you want downgrade to the free plan?'} %p If you downgrade to the free plan, you may reactivate your paid subscription at a later date. %br - @plans.each do |plan| .plan %h4 = "#{plan.name}: #{number_to_currency(plan.price)}" - if @subscription.plan_id == plan.id %br You are currently subscribed to this plan %br %br - else - if plan.price > @subscription.plan.price = button_to "Upgrade", {:action => :update, :subscription => {:plan_id => plan.id}}, {:method => :put, :confirm => 'Are you sure you want to upgrade your plan?'} %p If you choose to upgrade, you will be put on the new plan immediately. You will be charged the new rate minus a pro-rated credit for your current cycle. %br - else = button_to "Downgrade", {:action => :update, :subscription => {:plan_id => plan.id}}, {:method => :put, :confirm => 'Are you sure you want to downgrade your plan?'} %p The downgrade will occur at the end of your current billing cycle. You will remain on your current plan until then. %br = link_to 'Back', subscription_path
Version data entries
5 entries across 5 versions & 1 rubygems