2018-07-03 16:42:53 +02:00
|
|
|
{% extends "zerver/portico.html" %}
|
2019-10-23 07:46:34 +02:00
|
|
|
{% set entrypoint = "upgrade" %}
|
2018-03-31 04:13:44 +02:00
|
|
|
|
|
|
|
{% block customhead %}
|
2018-07-03 16:42:53 +02:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2018-12-07 18:43:22 +01:00
|
|
|
<script src="https://checkout.stripe.com/checkout.js"></script>
|
2018-03-31 04:13:44 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2018-11-29 08:51:53 +01:00
|
|
|
|
2018-03-31 04:13:44 +02:00
|
|
|
<div class="app portico-page">
|
|
|
|
|
2018-07-03 16:42:53 +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-11-18 10:18:14 +01:00
|
|
|
<h1>{% trans %}Upgrade to {{ plan }}{% endtrans %}</h1>
|
2018-07-13 13:33:05 +02:00
|
|
|
{% if error_message %}
|
2018-11-18 10:18:14 +01:00
|
|
|
<div class="alert alert-danger" id="upgrade-error-message-box">
|
2018-07-13 13:33:05 +02:00
|
|
|
{{ error_message }}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2018-11-18 10:18:14 +01:00
|
|
|
|
|
|
|
<ul class="nav nav-tabs" id="upgrade-tabs">
|
|
|
|
<li class="active"><a data-toggle="tab" href="#autopay">Pay automatically</a></li>
|
|
|
|
<li><a data-toggle="tab" href="#invoice">Pay by invoice</a></li>
|
|
|
|
</ul>
|
|
|
|
|
2018-12-24 12:37:54 +01:00
|
|
|
<input type="hidden" name="csrfmiddlewaretoken" value="{{ csrf_token }}">
|
2018-11-18 10:18:14 +01:00
|
|
|
<div class="tab-content">
|
|
|
|
<div class="tab-pane active" id="autopay">
|
2018-12-07 18:43:22 +01:00
|
|
|
<div id="autopay-input-section">
|
2019-02-27 13:53:43 +01:00
|
|
|
<form id="autopay-form" data-key="{{ publishable_key }}" data-email="{{ email }}" method="post">
|
2018-12-07 18:43:22 +01:00
|
|
|
<input type="hidden" name="seat_count" value="{{ seat_count }}">
|
|
|
|
<input type="hidden" name="signed_seat_count" value="{{ signed_seat_count }}">
|
|
|
|
<input type="hidden" name="salt" value="{{ salt }}">
|
|
|
|
<input type="hidden" name="billing_modality" value="charge_automatically">
|
|
|
|
<div class="payment-schedule">
|
2018-12-21 18:44:24 +01:00
|
|
|
<div id="autopay-error" class="alert alert-danger"></div>
|
2018-12-07 18:43:22 +01:00
|
|
|
<h3>{{ _("Payment schedule") }}</h3>
|
|
|
|
<label>
|
2020-04-17 11:17:28 +02:00
|
|
|
<input type="radio" name="schedule" value="monthly" checked/>
|
|
|
|
<div class="box">
|
|
|
|
<div class="schedule-time">{{ _("Pay monthly") }}</div>
|
|
|
|
<div class="schedule-amount">$<span id="autopay_monthly_price"></span>/user/month</div>
|
|
|
|
</div>
|
|
|
|
</label>
|
|
|
|
<label>
|
|
|
|
<input type="radio" name="schedule" value="annual"/>
|
2018-12-07 18:43:22 +01:00
|
|
|
<div class="box">
|
|
|
|
<div class="schedule-time annually">{{ _("Pay annually") }}</div>
|
|
|
|
<div class="schedule-amount">
|
|
|
|
$<span id="autopay_annual_price_per_month"></span>/user/month
|
|
|
|
<div class="schedule-amount-2">
|
|
|
|
($<span id="autopay_annual_price"></span>/user/year)
|
|
|
|
</div>
|
2018-11-18 10:18:14 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-12-07 18:43:22 +01:00
|
|
|
</label>
|
|
|
|
</div>
|
2018-12-21 18:44:24 +01:00
|
|
|
|
|
|
|
<div class="license-management">
|
|
|
|
<h3>{{ _("License management") }}</h3>
|
|
|
|
<label>
|
|
|
|
<input type="radio" name="license_management" value="automatic" checked />
|
|
|
|
<div class="box">
|
|
|
|
<div class="management-type">{{ _("Automatic") }}</div>
|
2019-01-29 15:30:19 +01:00
|
|
|
<div class="management-type-text">{{ _("Most convenient") }}</div>
|
2018-12-21 18:44:24 +01:00
|
|
|
</div>
|
|
|
|
</label>
|
|
|
|
<label>
|
|
|
|
<input type="radio" name="license_management" value="manual" />
|
|
|
|
<div class="box">
|
|
|
|
<div class="management-type">{{ _("Manual") }}</div>
|
2019-01-29 15:30:19 +01:00
|
|
|
<div class="management-type-text">{{ _("Most control") }}</div>
|
2018-12-21 18:44:24 +01:00
|
|
|
</div>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="license-automatic-section">
|
|
|
|
<p>
|
|
|
|
You’ll initially be charged
|
|
|
|
<b>$<span id="charged_amount"></span></b> for <b>{{ seat_count }}</b>
|
2018-12-15 09:33:25 +01:00
|
|
|
users.<br>
|
|
|
|
We'll automatically charge you for additional licenses as users
|
2018-12-21 18:44:24 +01:00
|
|
|
are added, and remove licenses not in use at the end of each billing
|
|
|
|
period.
|
|
|
|
</p>
|
2018-12-26 10:45:30 +01:00
|
|
|
<input type="hidden" name="licenses" id="automatic_license_count" value="{{ seat_count }}">
|
2018-12-21 18:44:24 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="license-manual-section">
|
|
|
|
<p>
|
2018-12-15 09:33:25 +01:00
|
|
|
Enter the number of users you would like to pay for.<br>
|
|
|
|
You'll need to manually add licenses to add or invite
|
|
|
|
additional users.
|
2018-12-21 18:44:24 +01:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<h4>Number of licenses (minimum {{ seat_count }})</h4>
|
2018-12-26 10:45:30 +01:00
|
|
|
<input type="number" name="licenses" min="{{ seat_count }}" autocomplete="off" id="manual_license_count" required/><br>
|
2018-12-21 18:44:24 +01:00
|
|
|
</div>
|
|
|
|
|
2018-12-07 18:43:22 +01:00
|
|
|
<button id="add-card-button" class="stripe-button-el">
|
|
|
|
<span id="add-card-button-span">Add card</span>
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div id="autopay-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>
|
2018-07-03 16:42:53 +02:00
|
|
|
</div>
|
2018-12-07 18:43:22 +01:00
|
|
|
<div id="autopay_loading_indicator"></div>
|
|
|
|
</div>
|
|
|
|
<div id="autopay-success" class="alert alert-success">
|
|
|
|
Upgrade complete! The page will now reload.
|
|
|
|
</div>
|
2018-11-18 10:18:14 +01:00
|
|
|
</div>
|
2018-12-07 18:43:22 +01:00
|
|
|
|
2018-11-18 10:18:14 +01:00
|
|
|
<div class="tab-pane" id="invoice">
|
2018-12-07 18:43:22 +01:00
|
|
|
<div id="invoice-error" class="alert alert-danger"></div>
|
|
|
|
<div id="invoice-input-section">
|
|
|
|
<form id="invoice-form" method="post">
|
|
|
|
<input type="hidden" name="signed_seat_count" value="{{ signed_seat_count }}">
|
|
|
|
<input type="hidden" name="salt" value="{{ salt }}">
|
|
|
|
<input type="hidden" name="billing_modality" value="send_invoice">
|
|
|
|
<div class="payment-schedule">
|
|
|
|
<h3>{{ _("Payment schedule") }}</h3>
|
|
|
|
<label>
|
2018-12-12 23:23:15 +01:00
|
|
|
<input type="radio" name="schedule" value="annual" checked />
|
2018-12-07 18:43:22 +01:00
|
|
|
<div class="box">
|
|
|
|
<div class="schedule-time annually">{{ _("Pay annually") }}</div>
|
|
|
|
<div class="schedule-amount">
|
|
|
|
$<span id="invoice_annual_price_per_month"></span>/user/month
|
|
|
|
<div class="schedule-amount-2">
|
|
|
|
($<span id="invoice_annual_price"></span>/user/year)
|
|
|
|
</div>
|
2018-11-18 10:18:14 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-12-07 18:43:22 +01:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<p>
|
2018-12-15 09:33:25 +01:00
|
|
|
Enter the number of users you would like to pay for.<br>
|
|
|
|
We'll email you an invoice in 1-2 hours. Invoices can be paid by
|
|
|
|
ACH transfer or credit card.
|
2018-12-07 18:43:22 +01:00
|
|
|
</p>
|
2019-01-29 15:30:19 +01:00
|
|
|
<h4>Number of licenses (minimum {{ min_invoiced_licenses }})</h4>
|
2018-12-24 11:34:47 +01:00
|
|
|
<input type="number" min="{{ min_invoiced_licenses }}" autocomplete="off"
|
2018-12-26 10:52:32 +01:00
|
|
|
id="invoiced_licenses" name="licenses" required/><br>
|
2018-12-07 18:43:22 +01:00
|
|
|
<button type="submit" id="invoice-button" class="stripe-button-el invoice-button">Buy Standard</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div id="invoice-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>
|
2018-07-03 16:42:53 +02:00
|
|
|
</div>
|
2018-12-07 18:43:22 +01:00
|
|
|
<div id="invoice_loading_indicator"></div>
|
|
|
|
</div>
|
|
|
|
<div id="invoice-success" class="alert alert-success">
|
|
|
|
Upgrade complete! The page will now reload.
|
|
|
|
</div>
|
2018-07-03 16:42:53 +02:00
|
|
|
</div>
|
2018-11-18 10:18:14 +01:00
|
|
|
</div>
|
|
|
|
<div class="support-link">
|
2018-10-23 21:06:15 +02:00
|
|
|
<p>
|
2018-11-18 10:18:14 +01:00
|
|
|
We're happy to help!
|
|
|
|
Contact <a href="mailto:support@zulipchat.com">support@zulipchat.com</a>
|
|
|
|
for any billing-related questions.
|
2018-10-23 21:06:15 +02:00
|
|
|
</p>
|
2018-11-18 10:18:14 +01:00
|
|
|
</div>
|
2018-03-31 04:13:44 +02:00
|
|
|
</div>
|
2018-07-03 16:42:53 +02:00
|
|
|
</div>
|
2018-03-31 04:13:44 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|