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
|
|
|
|
2022-09-06 12:04:03 +02:00
|
|
|
{% block title %}
|
|
|
|
<title>{{ _("Billing") }} | Zulip</title>
|
|
|
|
{% endblock %}
|
|
|
|
|
2023-10-28 15:23:58 +02:00
|
|
|
{% block portico_content %}
|
2023-11-08 09:50:11 +01:00
|
|
|
<div id="billing-page" class="register-account flex full-page">
|
|
|
|
<div class="center-block new-style">
|
|
|
|
<div class="pitch">
|
|
|
|
<h1>Zulip Cloud billing for {{ org_name }}</h1>
|
|
|
|
</div>
|
|
|
|
<div class="alert alert-danger" id="error-message-box"></div>
|
|
|
|
{% if admin_access and has_active_plan %}
|
|
|
|
<input type="hidden" name="csrfmiddlewaretoken" value="{{ csrf_token }}" />
|
|
|
|
<div class="white-box">
|
|
|
|
<div id="billing-page-details">
|
|
|
|
<div class="input-box billing-page-field no-validation">
|
|
|
|
<label for="org_current_plan" class="inline-block label-title">Your plan</label>
|
|
|
|
<div id="org_current_plan" class="not-editable-realm-field">
|
|
|
|
{% if free_trial %}
|
|
|
|
{{ plan_name }} Free Trial
|
2023-11-08 08:00:34 +01:00
|
|
|
{% else %}
|
2023-11-08 09:50:11 +01:00
|
|
|
{{ plan_name }}
|
2023-11-08 08:00:34 +01:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
2023-11-08 09:50:11 +01:00
|
|
|
</div>
|
|
|
|
<div class="input-box billing-page-field no-validation">
|
|
|
|
<label for="org_billing_freqency" class="inline-block label-title">Billing frequency</label>
|
|
|
|
<div id="org_billing_freqency" class="not-editable-realm-field">
|
|
|
|
{{ billing_frequency }}
|
|
|
|
{% if switch_to_annual_at_end_of_cycle %}
|
|
|
|
<br />
|
|
|
|
Your plan will switch to annual billing on {{ renewal_date }}.
|
|
|
|
{% endif %}
|
2023-11-08 08:01:40 +01:00
|
|
|
</div>
|
2023-11-08 09:50:11 +01:00
|
|
|
</div>
|
2023-11-08 11:29:40 +01:00
|
|
|
{% if automanage_licenses %}
|
2023-11-08 09:50:11 +01:00
|
|
|
<div class="input-box billing-page-field no-validation">
|
|
|
|
<label for="automatic-license-count" class="inline-block label-title">
|
|
|
|
Number of licenses
|
|
|
|
<a href="/help/zulip-cloud-billing#what-is-the-difference-between-automatic-and-manual-billing" target="_blank" rel="noopener noreferrer">
|
|
|
|
<i class="fa fa-question-circle-o" aria-hidden="true"></i>
|
|
|
|
</a>
|
|
|
|
</label>
|
|
|
|
<div id="automatic-license-count" class="not-editable-realm-field">
|
|
|
|
{{ licenses }} (managed automatically)
|
|
|
|
</div>
|
2023-11-08 11:29:40 +01:00
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
<div class="input-box billing-page-field no-validation input-box-number">
|
2023-11-08 09:50:11 +01:00
|
|
|
<label for="current-manual-license-count" class="inline-block label-title">
|
|
|
|
Number of licenses for current billing period
|
|
|
|
<a href="/help/zulip-cloud-billing#what-is-the-difference-between-automatic-and-manual-billing" target="_blank" rel="noopener noreferrer">
|
|
|
|
<i class="fa fa-question-circle-o" aria-hidden="true"></i>
|
|
|
|
</a>
|
|
|
|
</label>
|
2023-11-08 11:29:40 +01:00
|
|
|
<div class="number-input-with-label">
|
2023-11-08 14:58:35 +01:00
|
|
|
<form id="current-license-change-form">
|
|
|
|
<input min="{{ licenses }}" type="number" name="licenses" autocomplete="off" id="current-manual-license-count" class="short-width-number-input" data-original-value="{{ licenses }}" value="{{ licenses }}" required/>
|
|
|
|
</form>
|
2023-11-08 11:29:40 +01:00
|
|
|
<span class="licence-count-in-use">licenses ({{ seat_count }} in use)</span>
|
2023-11-08 14:58:35 +01:00
|
|
|
<button id="current-manual-license-count-update-button" class="license-count-update-button" disabled>
|
2023-11-08 09:50:11 +01:00
|
|
|
<span class="billing-button-text">Update</span>
|
|
|
|
<object class="loader billing-button-loader" type="image/svg+xml" data="{{ static('images/loading/loader-white.svg') }}"></object>
|
|
|
|
</button>
|
|
|
|
</div>
|
2023-11-08 14:58:35 +01:00
|
|
|
<div id="current-license-change-error" class="alert alert-danger billing-page-error"></div>
|
2023-11-08 11:29:40 +01:00
|
|
|
</div>
|
|
|
|
{% if not downgrade_at_end_of_cycle %}
|
|
|
|
<div class="input-box billing-page-field no-validation input-box-number">
|
2023-11-08 09:50:11 +01:00
|
|
|
<label for="next-manual-license-count" class="inline-block label-title">
|
|
|
|
Number of licenses for next billing period
|
|
|
|
<a href="/help/zulip-cloud-billing#what-is-the-difference-between-automatic-and-manual-billing" target="_blank" rel="noopener noreferrer">
|
|
|
|
<i class="fa fa-question-circle-o" aria-hidden="true"></i>
|
|
|
|
</a>
|
|
|
|
</label>
|
2023-11-08 11:29:40 +01:00
|
|
|
<div class="number-input-with-label">
|
2023-11-08 14:58:35 +01:00
|
|
|
<form id="next-license-change-form">
|
|
|
|
<input type="number" name="licenses_at_next_renewal" autocomplete="off" id="next-manual-license-count" class="short-width-number-input" data-original-value="{{ licenses_at_next_renewal }}" value="{{ licenses_at_next_renewal }}" required/>
|
|
|
|
</form>
|
2023-11-08 11:29:40 +01:00
|
|
|
<span class="licence-count-in-use">licenses ({{ seat_count }} in use)</span>
|
2023-11-08 14:58:35 +01:00
|
|
|
<button id="next-manual-license-count-update-button" class="license-count-update-button" disabled>
|
2023-11-08 09:50:11 +01:00
|
|
|
<span class="billing-button-text">Update</span>
|
|
|
|
<object class="loader billing-button-loader" type="image/svg+xml" data="{{ static('images/loading/loader-white.svg') }}"></object>
|
|
|
|
</button>
|
2018-06-29 16:51:36 +02:00
|
|
|
</div>
|
2023-11-08 14:58:35 +01:00
|
|
|
<div id="next-license-change-error" class="alert alert-danger billing-page-error"></div>
|
2023-11-08 11:29:40 +01:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
<div id="licensechange-success" class="alert alert-success billing-page-success">
|
|
|
|
Plan updated. The page will now reload.
|
2018-06-29 16:51:36 +02:00
|
|
|
</div>
|
2023-11-08 11:29:40 +01:00
|
|
|
{% endif %}
|
2023-11-08 09:50:11 +01:00
|
|
|
<div id="cardchange-error" class="alert alert-danger"></div>
|
|
|
|
<div class="input-box billing-page-field no-validation">
|
|
|
|
<label for="customer-payment-method" class="inline-block label-title">Payment method</label>
|
2023-11-08 11:42:05 +01:00
|
|
|
<div id="customer-payment-method" class="not-editable-realm-field">
|
2023-11-08 09:50:11 +01:00
|
|
|
{{ payment_method }}
|
|
|
|
</div>
|
2020-05-22 15:42:46 +02:00
|
|
|
</div>
|
2023-11-08 11:42:05 +01:00
|
|
|
{% if charge_automatically %}
|
|
|
|
<div class="user-stripe-card-update input-box billing-page-field no-validation">
|
2023-11-08 15:59:03 +01:00
|
|
|
<button class="user-stripe-card-update-button" id="update-card-button">
|
2023-11-08 11:42:05 +01:00
|
|
|
<span class="billing-button-text">Update card</span>
|
|
|
|
<object class="loader billing-button-loader" type="image/svg+xml" data="{{ static('images/loading/loader-white.svg') }}"></object>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2023-11-08 11:29:40 +01:00
|
|
|
<div id="cardchange-success" class="alert alert-success billing-page-success">
|
2023-11-08 09:50:11 +01:00
|
|
|
Redirecting to Stripe checkout page for updating Card details.
|
2018-06-29 16:51:36 +02:00
|
|
|
</div>
|
2023-11-08 12:08:22 +01:00
|
|
|
<div class="input-box billing-page-field no-validation">
|
|
|
|
<div class="next-payment-info not-editable-realm-field">
|
|
|
|
{% if renewal_amount %}
|
|
|
|
{% if free_trial %}
|
|
|
|
Your plan will be upgraded to <strong>{{ plan_name }}</strong> on <strong>{{ renewal_date }}</strong> for
|
|
|
|
<strong>${{ renewal_amount }}</strong>.
|
|
|
|
{% elif downgrade_at_end_of_cycle %}
|
|
|
|
Your organization will be downgraded to <strong>Zulip Cloud Free</strong> at the end of the current billing
|
|
|
|
period (<strong>{{ renewal_date }}</strong>). You will lose access to unlimited search history and
|
|
|
|
<a href="/plans/">other features</a> of your current plan.
|
|
|
|
{% else %}
|
|
|
|
{% if charge_automatically %}
|
|
|
|
Your plan will automatically renew on <strong>{{ renewal_date }}</strong>.
|
|
|
|
{% else %}
|
|
|
|
Your next invoice is due on <strong>{{ renewal_date }}</strong>.
|
|
|
|
{% endif %}
|
|
|
|
<br />
|
|
|
|
Expected charge: <strong>${{ renewal_amount }}</strong>.
|
|
|
|
{% endif %}
|
2023-11-08 09:50:11 +01:00
|
|
|
{% else %}
|
2023-11-08 12:08:22 +01:00
|
|
|
Your plan ends on <strong>{{ renewal_date }}</strong>, and does not renew.
|
2023-11-08 09:50:11 +01:00
|
|
|
{% endif %}
|
2023-11-08 12:08:22 +01:00
|
|
|
</div>
|
2023-11-08 09:50:11 +01:00
|
|
|
</div>
|
|
|
|
<div class="input-box no-validation billing-page-field">
|
|
|
|
<label for="billing-contact" class="inline-block label-title">Billing contact</label>
|
|
|
|
<div id="billing-contact" class="not-editable-realm-field">
|
|
|
|
<a href="mailto:{{ stripe_email }}">{{ stripe_email }}</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="planchange-error" class="alert alert-danger"></div>
|
|
|
|
<div id="planchange-input-section">
|
|
|
|
{% if free_trial %}
|
|
|
|
<div class="end-free-trail">
|
|
|
|
<p>
|
|
|
|
End Free Trial and downgrade plan to <strong>Zulip Free</strong>.
|
|
|
|
</p>
|
|
|
|
<button class="end-free-trail-button">
|
|
|
|
<span class="billing-button-text">End free trial</span>
|
|
|
|
<object class="loader billing-button-loader" type="image/svg+xml" data="{{ static('images/loading/loader-white.svg') }}"></object>
|
|
|
|
</button>
|
|
|
|
</div>
|
2023-11-08 16:52:43 +01:00
|
|
|
{% elif downgrade_at_end_of_cycle %}
|
|
|
|
<div class="reactivate-current-plan plan-toggle-action input-box billing-page-field no-validation" id="reactivate-subscription">
|
2023-11-08 12:08:37 +01:00
|
|
|
<button class="reactivate-current-plan-button plan-toggle-action-button">
|
2023-11-08 09:50:11 +01:00
|
|
|
<span class="billing-button-text">Reactivate subscription</span>
|
|
|
|
<object class="loader billing-button-loader" type="image/svg+xml" data="{{ static('images/loading/loader-white.svg') }}"></object>
|
|
|
|
</button>
|
|
|
|
</div>
|
2023-11-08 16:52:43 +01:00
|
|
|
{% else %}
|
|
|
|
<div class="cancel-current-plan plan-toggle-action input-box billing-page-field no-validation" id="cancel-subscription">
|
2023-11-08 12:08:37 +01:00
|
|
|
<button class="cancel-current-plan-button plan-toggle-action-button">
|
2023-11-08 09:50:11 +01:00
|
|
|
<span class="billing-button-text">Cancel plan</span>
|
|
|
|
<object class="loader billing-button-loader" type="image/svg+xml" data="{{ static('images/loading/loader-white.svg') }}"></object>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2020-04-03 16:17:34 +02:00
|
|
|
</div>
|
2023-11-08 16:52:43 +01:00
|
|
|
<form id="planchange-form">
|
|
|
|
{% if free_trial %}
|
|
|
|
<input name="status" type="hidden" value="{{ CustomerPlan.ENDED }}" />
|
|
|
|
{% elif downgrade_at_end_of_cycle %}
|
|
|
|
<input name="status" type="hidden" value="{{ CustomerPlan.ACTIVE }}" />
|
|
|
|
{% else %}
|
|
|
|
<input name="status" type="hidden" value="{{ CustomerPlan.DOWNGRADE_AT_END_OF_CYCLE }}" />
|
|
|
|
{% endif %}
|
|
|
|
</form>
|
|
|
|
<input name="status" type="hidden" value="{{ CustomerPlan.DOWNGRADE_AT_END_OF_CYCLE }}" />
|
2023-11-08 11:29:40 +01:00
|
|
|
<div id="planchange-success" class="alert alert-success billing-page-success">
|
2023-11-08 09:50:11 +01:00
|
|
|
Plan updated. The page will now reload.
|
2020-04-03 16:17:34 +02:00
|
|
|
</div>
|
2023-11-08 09:50:11 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="goto-zulip-organization-link">
|
|
|
|
{% if onboarding %}
|
|
|
|
<br />
|
|
|
|
<h3>
|
|
|
|
<b><a href="/">Go to your Zulip organization</a></b>
|
|
|
|
</h3>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
<hr />
|
|
|
|
<div class="support-link">
|
|
|
|
<p>
|
|
|
|
To make changes to your plan or view your billing history <a href="mailto:support@zulip.com">contact Zulip support</a>.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
{% elif admin_access and not has_active_plan %}
|
|
|
|
<!-- For sponsored or sponsorship pending organizations we already redirect to /sponsorship page. -->
|
|
|
|
<div class="tab-content">
|
|
|
|
<center>
|
2018-06-29 16:51:36 +02:00
|
|
|
<p>
|
2023-11-08 09:50:11 +01:00
|
|
|
<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>
|
2018-06-29 16:51:36 +02:00
|
|
|
</p>
|
2023-11-08 09:50:11 +01:00
|
|
|
</center>
|
|
|
|
</div>
|
|
|
|
<div class="support-link">
|
|
|
|
<p>
|
|
|
|
<a href="mailto:support@zulip.com">Contact Zulip support</a> for billing history.
|
|
|
|
</p>
|
2018-06-29 16:51:36 +02:00
|
|
|
</div>
|
2023-11-08 09:50:11 +01:00
|
|
|
{% else %}
|
|
|
|
<p>
|
|
|
|
You must be an organization owner or a billing administrator to view this page.
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
2018-01-13 19:38:13 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-09-28 12:33:10 +02:00
|
|
|
<div id="confirm-licenses-modal" class="micromodal" aria-hidden="true">
|
|
|
|
<div class="modal__overlay" tabindex="-1">
|
|
|
|
<div class="modal__container" role="dialog" aria-modal="true" aria-labelledby="dialog_title">
|
|
|
|
<header class="modal__header">
|
|
|
|
<h1 class="modal__title dialog_heading">
|
2023-11-08 14:58:35 +01:00
|
|
|
{{ _('Confirm license change') }}
|
2023-09-28 12:33:10 +02:00
|
|
|
</h1>
|
|
|
|
<button class="modal__close" aria-label="{{ _('Close modal') }}" data-micromodal-close></button>
|
|
|
|
</header>
|
|
|
|
<main class="modal__content">
|
|
|
|
<p>
|
2023-11-08 14:58:35 +01:00
|
|
|
Are you sure you want to change the licenses from
|
2023-09-28 12:33:10 +02:00
|
|
|
<b><span id="current_license_count_holder"></span></b> to
|
|
|
|
<b><span id="new_license_count_holder"></span></b>?
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
You would be charged for the additional licenses.
|
|
|
|
</p>
|
|
|
|
</main>
|
|
|
|
<footer class="modal__footer">
|
|
|
|
<button class="modal__btn dialog_exit_button" aria-label="{{ '(Close this dialog window)' }}" data-micromodal-close>{{ _('Cancel') }}</button>
|
|
|
|
<button class="modal__btn dialog_submit_button">
|
|
|
|
<span>{{ _('Confirm') }}</span>
|
|
|
|
</button>
|
|
|
|
</footer>
|
|
|
|
</div>
|
2020-12-23 17:08:27 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-11-08 08:21:11 +01:00
|
|
|
<div id="confirm-cancel-subscription-modal" class="micromodal" aria-hidden="true">
|
|
|
|
<div class="modal__overlay" tabindex="-1">
|
|
|
|
<div class="modal__container" role="dialog" aria-modal="true" aria-labelledby="dialog_title">
|
|
|
|
<header class="modal__header">
|
|
|
|
<h1 class="modal__title dialog_heading">
|
|
|
|
Downgrade {{ org_name }} to Zulip Cloud Free
|
|
|
|
</h1>
|
|
|
|
<button class="modal__close" aria-label="{{ _('Close modal') }}" data-micromodal-close></button>
|
|
|
|
</header>
|
|
|
|
<main class="modal__content">
|
|
|
|
<p>
|
2023-11-08 09:50:11 +01:00
|
|
|
Your organization will be downgraded to Zulip Cloud Free at the end of the current billing
|
|
|
|
period ({{ renewal_date }}). You will lose access to unlimited search history and
|
2023-11-08 08:21:11 +01:00
|
|
|
<a href="/plans">other features</a>
|
|
|
|
of your current plan. Are you sure you want to continue?
|
|
|
|
</p>
|
|
|
|
</main>
|
|
|
|
<footer class="modal__footer">
|
|
|
|
<button class="modal__btn dialog_exit_button" aria-label="{{ '(Close this dialog window)' }}" data-micromodal-close>{{ _('Never mind') }}</button>
|
|
|
|
<button class="modal__btn dialog_submit_button">
|
|
|
|
<span>{{ _('Downgrade') }}</span>
|
|
|
|
</button>
|
|
|
|
</footer>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-01-13 19:38:13 +01:00
|
|
|
{% endblock %}
|