Browse Source

Updated pricing.

pull/133/head
Pēteris Caune 7 years ago
parent
commit
c04017c2b3
5 changed files with 17 additions and 14 deletions
  1. +2
    -2
      hc/payments/models.py
  2. +2
    -2
      hc/payments/views.py
  3. BIN
      static/img/integrations/sms.png
  4. +2
    -2
      templates/front/channels.html
  5. +11
    -8
      templates/payments/pricing.html

+ 2
- 2
hc/payments/models.py View File

@ -29,8 +29,8 @@ class Subscription(models.Model):
def price(self):
if self.plan_id == "P5":
return 5
elif self.plan_id == "P75":
return 75
elif self.plan_id == "P50":
return 50
return 0


+ 2
- 2
hc/payments/views.py View File

@ -55,7 +55,7 @@ def log_and_bail(request, result):
@require_POST
def create_plan(request):
plan_id = request.POST["plan_id"]
if plan_id not in ("P5", "P75"):
if plan_id not in ("P5", "P50"):
return HttpResponseBadRequest()
sub = Subscription.objects.for_user(request.user)
@ -113,7 +113,7 @@ def create_plan(request):
profile.sms_sent = 0
profile.team_access_allowed = True
profile.save()
elif plan_id == "P75":
elif plan_id == "P50":
profile.ping_log_limit = 1000
profile.check_limit = 500
profile.sms_limit = 500


BIN
static/img/integrations/sms.png View File

Before After
Width: 128  |  Height: 128  |  Size: 3.9 KiB Width: 128  |  Height: 128  |  Size: 4.9 KiB

+ 2
- 2
templates/front/channels.html View File

@ -151,7 +151,7 @@
class="icon" alt="Email icon" />
<h2>Email</h2>
<p>Get an email message when check goes up or down.</p>
<p>Get an email message when a check goes up or down.</p>
<a href="{% url 'hc-add-email' %}" class="btn btn-primary">Add Integration</a>
</li>
@ -161,7 +161,7 @@
class="icon" alt="SMS icon" />
<h2>SMS {% if show_pricing %}<small>(paid plans)</small>{% endif %}</h2>
<p>Get a text message to your phone when check goes down.</p>
<p>Get a text message to your phone when a check goes down.</p>
<a href="{% url 'hc-add-sms' %}" class="btn btn-primary">Add Integration</a>
</li>


+ 11
- 8
templates/payments/pricing.html View File

@ -67,10 +67,11 @@
<p>free</p>
</div>
<ul class="list-group text-center">
<li class="list-group-item">Single User Access</li>
<li class="list-group-item"><i class="fa fa-check"></i> 20 Checks</li>
<li class="list-group-item">100 log entries per check</li>
<li class="list-group-item"><i class="fa fa-check"></i> Personal or Commercial use</li>
<li class="list-group-item">Single User</li>
<li class="list-group-item">&nbsp;</li>
<li class="list-group-item">&nbsp;</li>
</ul>
<div class="panel-footer">
@ -101,10 +102,11 @@
</div>
<ul class="list-group text-center">
<li class="list-group-item">Team Access</li>
<li class="list-group-item">Unlimited Checks</li>
<li class="list-group-item">1000 log entries per check</li>
<li class="list-group-item">Personal or Commercial use</li>
<li class="list-group-item">Team Access</li>
<li class="list-group-item">50 SMS alerts per month</li>
<li class="list-group-item">Email Support</li>
</ul>
<div class="panel-footer">
@ -117,7 +119,7 @@
<button
data-plan-id="P5"
class="btn btn-lg btn-default btn-create-payment-method">
{% if sub.plan_id == "P75" %}
{% if sub.plan_id == "P50" %}
Switch to $5/mo
{% else %}
Upgrade your Account
@ -134,29 +136,30 @@
</div>
<!-- /item -->
<!-- P75 -->
<!-- P50 -->
<div class="col-sm-4 text-center">
<div class="panel panel-default panel-pricing">
<div class="panel-body text-center">
<p>$75<span class="mo">/mo</span></p>
<p>$50<span class="mo">/mo</span></p>
</div>
<ul class="list-group text-center">
<li class="list-group-item">Team Access</li>
<li class="list-group-item">Unlimited Checks</li>
<li class="list-group-item">1000 log entries per check</li>
<li class="list-group-item">Personal or Commercial use</li>
<li class="list-group-item">Team Access</li>
<li class="list-group-item">500 SMS alerts per month</li>
<li class="list-group-item">Priority Email Support</li>
</ul>
<div class="panel-footer">
{% if request.user.is_authenticated %}
{% if sub.plan_id == "P75" %}
{% if sub.plan_id == "P50" %}
<button class="btn btn-lg btn-success disabled">
Selected
</button>
{% else %}
<button
data-plan-id="P75"
data-plan-id="P50"
class="btn btn-lg btn-default btn-create-payment-method">
Upgrade Your Account
</button>


Loading…
Cancel
Save