mirror of https://github.com/zulip/zulip.git
upgrade: Add a dropdown to select billing cycle.
This commit is contained in:
parent
2570f7ce23
commit
d3363bab96
|
@ -59,34 +59,19 @@
|
||||||
<hr />
|
<hr />
|
||||||
<h2>Zulip Cloud Standard free trial</h2>
|
<h2>Zulip Cloud Standard free trial</h2>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="payment-schedule">
|
<div class="payment-schedule input-box">
|
||||||
<div id="autopay-error" class="alert alert-danger"></div>
|
<div id="autopay-error" class="alert alert-danger"></div>
|
||||||
<h3>{{ _("Payment schedule") }}</h3>
|
|
||||||
{% if free_trial_days %}
|
{% if free_trial_days %}
|
||||||
<p>
|
<p>
|
||||||
You won't be charged during the free trial. You can also downgrade to
|
You won't be charged during the free trial. You can also downgrade to
|
||||||
Zulip Cloud Free, our forever free plan, at any time.
|
Zulip Cloud Free, our forever free plan, at any time.
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<label>
|
<select name="payment-schedule" id="payment-schedule-select">
|
||||||
<input type="radio" name="schedule" value="monthly" checked/>
|
<option value="monthly" id="autopay_monthly_price"></option>
|
||||||
<div class="box">
|
<option value="annually" id="autopay_annual_price_per_month"></option>
|
||||||
<div class="schedule-time">{{ _("Pay monthly") }}</div>
|
</select>
|
||||||
<div class="schedule-amount">$<span id="autopay_monthly_price"></span>/user/month</div>
|
<label for="payment-schedule-select">Payment schedule</label>
|
||||||
</div>
|
|
||||||
</label>
|
|
||||||
<label>
|
|
||||||
<input type="radio" name="schedule" value="annual"/>
|
|
||||||
<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>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</label>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if not manual_license_management %}
|
{% if not manual_license_management %}
|
||||||
|
|
|
@ -40,9 +40,12 @@ export const initialize = (): void => {
|
||||||
helpers.update_charged_amount(prices, helpers.schedule_schema.parse(this.value));
|
helpers.update_charged_amount(prices, helpers.schedule_schema.parse(this.value));
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#autopay_annual_price").text(helpers.format_money(prices.annual));
|
$("#autopay_annual_price_per_month").text(
|
||||||
$("#autopay_annual_price_per_month").text(helpers.format_money(prices.annual / 12));
|
`Pay annually ($${helpers.format_money(prices.annual / 12)}/user/month)`,
|
||||||
$("#autopay_monthly_price").text(helpers.format_money(prices.monthly));
|
);
|
||||||
|
$("#autopay_monthly_price").text(
|
||||||
|
`Pay monthly ($${helpers.format_money(prices.monthly)}/user/month)`,
|
||||||
|
);
|
||||||
$("#invoice_annual_price").text(helpers.format_money(prices.annual));
|
$("#invoice_annual_price").text(helpers.format_money(prices.annual));
|
||||||
$("#invoice_annual_price_per_month").text(helpers.format_money(prices.annual / 12));
|
$("#invoice_annual_price_per_month").text(helpers.format_money(prices.annual / 12));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue