2018-06-29 16:51:36 +02:00
|
|
|
{% extends "zerver/portico.html" %}
|
2018-01-13 19:38:13 +01:00
|
|
|
|
|
|
|
{% block customhead %}
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
{{ render_bundle('landing-page') }}
|
2018-09-06 10:14:24 +02:00
|
|
|
{{ render_bundle('billing') }}
|
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' %}
|
|
|
|
|
2018-03-31 04:13:44 +02:00
|
|
|
{{ render_bundle('translations') }}
|
2018-06-29 16:51:36 +02:00
|
|
|
<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>
|
|
|
|
{% if admin_access %}
|
|
|
|
<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>
|
2018-06-29 16:51:36 +02:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div class="tab-content">
|
|
|
|
<div class="tab-pane active" id="overview">
|
|
|
|
<p>Your current plan is <strong>{{ plan_name }}</strong></p>
|
|
|
|
<p>You are paying for <strong>{{ seat_count }} users</strong>.</p>
|
|
|
|
<p>Your plan will renew on <strong>{{ renewal_date }}</strong> for <strong>${{ renewal_amount }}</strong>.</p>
|
2018-10-23 21:06:15 +02:00
|
|
|
{% if account_charges %}
|
|
|
|
<p>You have <strong>${{ account_charges }}</strong> in charges that will be added to your next bill.</p>
|
|
|
|
{% elif account_credits %}
|
|
|
|
<p>You have <strong>${{ account_credits }}</strong> in credits that will be automatically applied to your next bill.</p>
|
2018-06-29 16:51:36 +02:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
2018-09-06 15:14:54 +02:00
|
|
|
<div class="tab-pane" id="payment-method" data-email="{{stripe_email}}" data-csrf="{{csrf_token}}" data-key="{{publishable_key}}">
|
|
|
|
<div id="payment-section">
|
2018-11-18 10:18:14 +01:00
|
|
|
<p>Current payment method: <strong>{{ payment_method }}</strong></p>
|
|
|
|
{% if not billed_by_invoice %}
|
2018-09-06 15:14:54 +02:00
|
|
|
<button id="update-card-button" class="stripe-button-el">
|
|
|
|
<span id="update-card-button-span">Update card</span>
|
|
|
|
</button>
|
2018-11-18 10:18:14 +01:00
|
|
|
{% endif %}
|
2018-09-06 15:14:54 +02:00
|
|
|
</div>
|
|
|
|
<div id="loading-section">
|
|
|
|
<div class="updating-card-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="updating_card_indicator"></div>
|
|
|
|
</div>
|
|
|
|
<div id="card-updated-message" class="alert alert-success">
|
|
|
|
Card updated. The page will now reload.
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="tab-pane" id="loading">
|
2018-06-29 16:51:36 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="support-link">
|
|
|
|
<p>Contact <a href="mailto:support@zulipchat.com">support@zulipchat.com</a> for billing history or to make changes to your subscription.</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
<p>
|
|
|
|
You must be an organization administrator or a
|
|
|
|
billing administrator to view this page.
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-01-13 19:38:13 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|