2018-06-29 16:51:36 +02:00
|
|
|
{% extends "zerver/portico.html" %}
|
2019-10-23 07:46:34 +02:00
|
|
|
{% set entrypoint = "billing" %}
|
2018-01-13 19:38:13 +01:00
|
|
|
|
|
|
|
{% block customhead %}
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2018-09-06 15:14:54 +02:00
|
|
|
<script src="https://checkout.stripe.com/checkout.js"></script>
|
2018-01-13 19:38:13 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
2018-03-31 04:13:44 +02:00
|
|
|
{% block content %}
|
2018-06-29 16:51:36 +02:00
|
|
|
|
2018-03-31 04:13:44 +02:00
|
|
|
<div class="app portico-page">
|
2018-01-13 19:38:13 +01:00
|
|
|
|
2018-06-29 16:51:36 +02:00
|
|
|
{% include 'zerver/billing_nav.html' %}
|
|
|
|
|
|
|
|
<div class="portico-landing billing-upgrade-page">
|
|
|
|
<div class="hero small-hero"></div>
|
|
|
|
|
|
|
|
<div class="page-content">
|
|
|
|
<div class="main">
|
2018-09-06 15:14:54 +02:00
|
|
|
<div class="alert alert-danger" id="error-message-box"></div>
|
2018-06-29 16:51:36 +02:00
|
|
|
<h1>{{ _("Billing") }}</h1>
|
2020-04-03 16:17:34 +02:00
|
|
|
{% if admin_access and has_active_plan %}
|
2018-06-29 16:51:36 +02:00
|
|
|
<ul class="nav nav-tabs" id="billing-tabs">
|
2018-10-31 10:36:30 +01:00
|
|
|
<li class="active"><a data-toggle="tab" href="#overview">Overview</a></li>
|
|
|
|
<li><a data-toggle="tab" href="#payment-method">Payment Method</a></li>
|
2020-04-24 17:38:13 +02:00
|
|
|
<li><a data-toggle="tab" href="#settings">Settings</a></li>
|
2018-06-29 16:51:36 +02:00
|
|
|
</ul>
|
|
|
|
|
2018-12-26 12:35:47 +01:00
|
|
|
<input type="hidden" name="csrfmiddlewaretoken" value="{{ csrf_token }}">
|
2018-06-29 16:51:36 +02:00
|
|
|
<div class="tab-content">
|
|
|
|
<div class="tab-pane active" id="overview">
|
2020-04-23 20:10:15 +02:00
|
|
|
{% if free_trial %}
|
|
|
|
<p>Your current plan is <strong>{{ plan_name }} Free Trial</strong>.</p>
|
|
|
|
{% else %}
|
2018-12-23 09:10:57 +01:00
|
|
|
<p>Your current plan is <strong>{{ plan_name }}</strong>.</p>
|
2020-04-23 20:10:15 +02:00
|
|
|
{% endif %}
|
2019-01-29 16:38:24 +01:00
|
|
|
<p>You are using <strong>{{ licenses_used }} of {{ licenses }} licenses</strong>.</p>
|
2018-12-23 09:10:57 +01:00
|
|
|
<p>
|
2019-01-29 16:38:24 +01:00
|
|
|
{% if renewal_amount %}
|
2020-04-23 20:10:15 +02:00
|
|
|
{% if free_trial %}
|
|
|
|
Your plan will be upgraded to <strong>{{ plan_name }}</strong> on <strong>{{ renewal_date }}</strong> for
|
|
|
|
<strong>${{ renewal_amount }}</strong>.
|
2020-04-24 17:38:13 +02:00
|
|
|
{% elif downgrade_at_end_of_cycle %}
|
|
|
|
Your plan will be downgraded to <strong>Zulip Limited</strong> on <strong>{{ renewal_date }}</strong>.
|
2020-04-23 20:10:15 +02:00
|
|
|
{% else %}
|
|
|
|
Your plan will renew on <strong>{{ renewal_date }}</strong> for
|
|
|
|
<strong>${{ renewal_amount }}</strong>.
|
|
|
|
{% endif %}
|
2019-01-29 16:38:24 +01:00
|
|
|
{% else %}
|
2020-04-23 20:10:15 +02:00
|
|
|
Your plan ends on <strong>{{ renewal_date }}</strong>, and does not renew.
|
2019-01-29 16:38:24 +01:00
|
|
|
{% endif %}
|
2018-12-23 09:10:57 +01:00
|
|
|
</p>
|
2018-06-29 16:51:36 +02:00
|
|
|
</div>
|
2018-12-24 12:37:54 +01:00
|
|
|
<div class="tab-pane" id="payment-method" data-email="{{stripe_email}}" data-key="{{publishable_key}}">
|
2018-12-26 12:35:47 +01:00
|
|
|
<div id="cardchange-error" class="alert alert-danger"></div>
|
|
|
|
<div id="cardchange-input-section">
|
|
|
|
<form id="cardchange-form">
|
|
|
|
<p>Current payment method: <strong>{{ payment_method }}</strong></p>
|
|
|
|
{% if charge_automatically %}
|
|
|
|
<button id="update-card-button" class="stripe-button-el">
|
|
|
|
<span id="update-card-button-span">Update card</span>
|
|
|
|
</button>
|
|
|
|
{% endif %}
|
|
|
|
</form>
|
2018-09-06 15:14:54 +02:00
|
|
|
</div>
|
2018-12-26 12:35:47 +01:00
|
|
|
<div id="cardchange-loading">
|
2018-12-07 18:43:22 +01:00
|
|
|
<div class="zulip-loading-logo">
|
2018-09-06 15:14:54 +02:00
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 40 40" version="1.1">
|
|
|
|
<g transform="translate(-297.14285,-466.64792)">
|
|
|
|
<circle cx="317.14285" cy="486.64792" r="19.030317" style="stroke-width:1.93936479;"/>
|
|
|
|
<path d="m309.24286 477.14791 14.2 0 1.6 3.9-11.2 11.9 9.6 0 1.6 3.2-14.2 0-1.6-3.9 11.2-11.9-9.6 0z"/>
|
|
|
|
</g>
|
|
|
|
</svg>
|
|
|
|
</div>
|
2018-12-26 12:35:47 +01:00
|
|
|
<div id="cardchange_loading_indicator"></div>
|
2018-09-06 15:14:54 +02:00
|
|
|
</div>
|
2018-12-26 12:35:47 +01:00
|
|
|
<div id="cardchange-success" class="alert alert-success">
|
2018-09-06 15:14:54 +02:00
|
|
|
Card updated. The page will now reload.
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-04-24 17:38:13 +02:00
|
|
|
<div class="tab-pane" id="settings">
|
|
|
|
<div id="planchange-error" class="alert alert-danger"></div>
|
|
|
|
<div id="planchange-input-section">
|
|
|
|
<form id="planchange-form">
|
|
|
|
<h3>Downgrade</h3>
|
|
|
|
{% if free_trial %}
|
|
|
|
<p>
|
|
|
|
End Free Trial and downgrade plan to <strong>Zulip Limited</strong>.
|
|
|
|
</p>
|
|
|
|
<input name="status" type="hidden" value="{{ CustomerPlan.ENDED }}" />
|
|
|
|
<button class="btn-danger" id="change-plan-status">End free trial</button>
|
|
|
|
{% else %}
|
|
|
|
{% if downgrade_at_end_of_cycle %}
|
|
|
|
<p>
|
|
|
|
You plan is scheduled for downgrade on <strong>{{ renewal_date }}</strong>.
|
|
|
|
</p>
|
|
|
|
<input name="status" type="hidden" value="{{ CustomerPlan.ACTIVE }}" />
|
|
|
|
<button class="btn-info" id="change-plan-status">Cancel downgrade</button>
|
|
|
|
{% else %}
|
|
|
|
<p>
|
|
|
|
Downgrade to <strong>Zulip Limited</strong> at the end of current billing period.
|
|
|
|
</p>
|
|
|
|
<input name="status" type="hidden" value="{{ CustomerPlan.DOWNGRADE_AT_END_OF_CYCLE }}" />
|
|
|
|
<button class="btn-danger" id="change-plan-status">Start downgrade process</button>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div id="planchange-loading">
|
|
|
|
<div class="zulip-loading-logo">
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 40 40" version="1.1">
|
|
|
|
<g transform="translate(-297.14285,-466.64792)">
|
|
|
|
<circle cx="317.14285" cy="486.64792" r="19.030317" style="stroke-width:1.93936479;"/>
|
|
|
|
<path d="m309.24286 477.14791 14.2 0 1.6 3.9-11.2 11.9 9.6 0 1.6 3.2-14.2 0-1.6-3.9 11.2-11.9-9.6 0z"/>
|
|
|
|
</g>
|
|
|
|
</svg>
|
|
|
|
</div>
|
|
|
|
<div id="planchange_loading_indicator"></div>
|
|
|
|
</div>
|
|
|
|
<div id="planchange-success" class="alert alert-success">
|
|
|
|
Plan updated. The page will now reload.
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-09-06 15:14:54 +02:00
|
|
|
<div class="tab-pane" id="loading">
|
2018-06-29 16:51:36 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-05-22 15:42:46 +02:00
|
|
|
<div id="goto-zulip-organization-link">
|
|
|
|
{% if onboarding %}
|
|
|
|
<br>
|
|
|
|
<h3>
|
|
|
|
<b><a href="/">Go to your Zulip organization</a></b>
|
|
|
|
</h3>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
<hr>
|
2018-06-29 16:51:36 +02:00
|
|
|
<div class="support-link">
|
2018-12-23 09:10:57 +01:00
|
|
|
<p>
|
2020-05-28 02:00:13 +02:00
|
|
|
Contact <a href="mailto:support@zulip.com">support@zulip.com</a>
|
2018-12-23 09:10:57 +01:00
|
|
|
for billing history or to make changes to your subscription.
|
|
|
|
</p>
|
2018-06-29 16:51:36 +02:00
|
|
|
</div>
|
2020-04-03 16:17:34 +02:00
|
|
|
{% elif admin_access and not has_active_plan %}
|
|
|
|
<div class="tab-content">
|
|
|
|
<center>
|
|
|
|
<p>
|
|
|
|
<h2>Your organization is on the <b>Zulip Free</b> plan.</h2>
|
|
|
|
<a href="/upgrade">
|
|
|
|
<button type="submit" class="button green">Upgrade to Standard</button>
|
|
|
|
</a>
|
|
|
|
<a href="/plans">
|
|
|
|
<button type="submit">View all plans</button>
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
</center>
|
|
|
|
</div>
|
|
|
|
<div class="support-link">
|
|
|
|
<p>
|
2020-05-28 02:00:13 +02:00
|
|
|
Contact <a href="mailto:support@zulip.com">support@zulip.com</a> for billing history.
|
2020-04-03 16:17:34 +02:00
|
|
|
</p>
|
|
|
|
</div>
|
2018-06-29 16:51:36 +02:00
|
|
|
{% else %}
|
|
|
|
<p>
|
2018-12-23 09:10:57 +01:00
|
|
|
You must be an organization administrator or a billing administrator to view this page.
|
2018-06-29 16:51:36 +02:00
|
|
|
</p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-01-13 19:38:13 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|