2023-11-02 10:09:24 +01:00
|
|
|
{% extends "zerver/portico.html" %}
|
|
|
|
{% set entrypoint = "sponsorship" %}
|
|
|
|
|
2023-11-05 10:16:59 +01:00
|
|
|
{% set PAGE_TITLE = "Request Zulip Cloud sponsorship" %}
|
2023-11-02 09:36:27 +01:00
|
|
|
|
|
|
|
{% block portico_content %}
|
2023-11-02 16:34:37 +01:00
|
|
|
|
|
|
|
{% if is_sponsored %}
|
|
|
|
|
2023-11-03 12:49:54 +01:00
|
|
|
<div class="flex full-page thanks-page sponsorship-status-page">
|
2023-11-02 16:34:37 +01:00
|
|
|
<div class="center-block new-style">
|
2023-11-03 12:49:54 +01:00
|
|
|
<div class="pitch">
|
|
|
|
<h1>Zulip Cloud billing for {{realm_name}}</h1>
|
|
|
|
</div>
|
|
|
|
<div class="white-box">
|
2023-11-04 04:52:14 +01:00
|
|
|
<p> Zulip is sponsoring free <a href="/plans/">Zulip Cloud Standard</a> hosting for this organization. 🎉 </p>
|
2023-11-03 12:49:54 +01:00
|
|
|
</div>
|
2023-11-02 16:34:37 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% elif is_sponsorship_pending %}
|
|
|
|
|
2023-11-03 12:49:54 +01:00
|
|
|
<div class="flex full-page thanks-page sponsorship-status-page">
|
2023-11-02 16:34:37 +01:00
|
|
|
<div class="center-block new-style">
|
2023-11-03 12:49:54 +01:00
|
|
|
<div class="pitch">
|
|
|
|
<h1>Sponsorship request pending for {{realm_name}}</h1>
|
|
|
|
</div>
|
|
|
|
<div class="white-box">
|
2023-11-04 04:52:14 +01:00
|
|
|
<p> This organization has requested sponsorship for a free or discounted <a href="/plans/">Zulip Cloud Standard</a> plan.</p>
|
2023-11-03 12:49:54 +01:00
|
|
|
<p>
|
|
|
|
Please feel free to <a href="mailto:support@zulip.com">contact Zulip support</a> with any questions or updates to your request.
|
|
|
|
</p>
|
|
|
|
</div>
|
2023-11-02 16:34:37 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
|
2023-11-02 16:03:52 +01:00
|
|
|
<div class="register-account flex full-page sponsorship-page">
|
2023-11-02 10:09:24 +01:00
|
|
|
<div class="center-block new-style">
|
|
|
|
<div class="pitch">
|
2023-11-05 10:16:59 +01:00
|
|
|
<h1>Request Zulip Cloud sponsorship</h1>
|
2023-11-02 10:09:24 +01:00
|
|
|
</div>
|
2023-11-02 16:03:52 +01:00
|
|
|
<div class="white-box">
|
2023-11-02 10:09:24 +01:00
|
|
|
<div id="sponsorship-error" class="alert alert-danger"></div>
|
|
|
|
<div id="sponsorship-input-section">
|
|
|
|
<form id="sponsorship-form" method="post">
|
|
|
|
<input type="hidden" name="csrfmiddlewaretoken" value="{{ csrf_token }}" />
|
2023-11-02 12:34:00 +01:00
|
|
|
<div class="input-box sponsorship-form-field no-validation">
|
2023-11-04 04:18:16 +01:00
|
|
|
<label for="org-name" class="inline-block label-title">Organization</label>
|
2023-11-02 12:11:01 +01:00
|
|
|
<div id="org-name" class="not-editable-realm-field">{{ realm_name }}</div>
|
|
|
|
</div>
|
2023-11-02 12:34:00 +01:00
|
|
|
<div class="input-box sponsorship-form-field">
|
2023-11-02 12:11:01 +01:00
|
|
|
<div class="inline-block relative">
|
2023-11-02 16:03:52 +01:00
|
|
|
<select name="organization-type" id="organization-type" class="sponsorship-form-select">
|
2023-11-02 12:11:01 +01:00
|
|
|
{% for org_type in sorted_org_types %}
|
|
|
|
{% if not org_type[1].hidden %}
|
|
|
|
<option data-string-value="{{ org_type[0] }}"
|
|
|
|
{% if org_type[1].id == realm_org_type %}selected{% endif %}
|
|
|
|
value="{{ org_type[1].id }}">
|
|
|
|
{{ _(org_type[1].name) }}
|
|
|
|
</option>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</div>
|
2023-11-04 04:18:16 +01:00
|
|
|
<label for="organization-type" class="inline-block label-title">Organization type</label>
|
2023-11-02 12:11:01 +01:00
|
|
|
</div>
|
2023-11-11 16:15:33 +01:00
|
|
|
<p id="sponsorship-discount-details"></p>
|
2023-11-02 12:34:00 +01:00
|
|
|
<div class="input-box sponsorship-form-field no-validation">
|
2023-11-11 16:15:33 +01:00
|
|
|
<label for="org-website" class="inline-block
|
|
|
|
label-title">Organization website (if any)</label>
|
|
|
|
<input id="org-website" name="website" type="text"/>
|
2023-11-04 04:11:30 +01:00
|
|
|
<div id="sponsorship-org-website-error" class="alert alert-danger sponsorship-field-error"></div>
|
2023-11-02 12:11:01 +01:00
|
|
|
</div>
|
2023-11-02 12:34:00 +01:00
|
|
|
<div class="input-box sponsorship-form-field">
|
2023-11-11 16:15:33 +01:00
|
|
|
<label for="description" class="inline-block
|
|
|
|
label-title">Description of your organization</label>
|
2023-11-04 04:11:30 +01:00
|
|
|
<textarea id="description" name="description" cols="100" rows="5"></textarea>
|
|
|
|
<div id="sponsorship-description-error" class="alert alert-danger sponsorship-field-error"></div>
|
2023-11-02 12:08:50 +01:00
|
|
|
</div>
|
2023-11-11 16:15:33 +01:00
|
|
|
<div class="input-box sponsorship-form-field">
|
|
|
|
<label for="expected-total-users" class="inline-block label-title">Expected number of users (approximate range)</label>
|
|
|
|
<input id="expected-total-users" name="expected_total_users" type="text" />
|
|
|
|
<div id="sponsorship-expected-total-users-error" class="alert alert-danger sponsorship-field-error"></div>
|
|
|
|
</div>
|
|
|
|
<div class="input-box sponsorship-form-field no-validation">
|
|
|
|
<label for="paid-users-count" class="inline-block label-title">How many paid staff does your organization have?</label>
|
|
|
|
<input id="paid-users-count" name="paid_users_count" type="text"/>
|
|
|
|
<div id="sponsorship-paid-users-count-error" class="alert alert-danger sponsorship-field-error"></div>
|
|
|
|
</div>
|
|
|
|
<div class="input-box sponsorship-form-field">
|
|
|
|
<label for="paid-users-description" class="inline-block
|
|
|
|
label-title">Description of paid staff (if any)</label>
|
|
|
|
<textarea id="paid-users-description" name="paid_users_description" cols="100" rows="2"></textarea>
|
|
|
|
<div id="sponsorship-paid-users-description-error" class="alert alert-danger sponsorship-field-error"></div>
|
|
|
|
</div>
|
2023-11-02 10:09:24 +01:00
|
|
|
<!-- Disabled buttons do not fire any events, so we need a container div that isn't disabled for tippyjs to work -->
|
2023-11-04 04:18:16 +01:00
|
|
|
<div class="upgrade-button-container" {% if is_demo_organization %}data-tippy-content="Convert demo organization before upgrading."{% endif %}>
|
2023-11-02 10:09:24 +01:00
|
|
|
<button type="submit" id="sponsorship-button" class="stripe-button-el invoice-button" {% if is_demo_organization %}disabled{% endif %}>
|
2023-11-02 16:03:52 +01:00
|
|
|
<span class="sponsorship-button-text">Submit</span>
|
|
|
|
<object class="loader sponsorship-button-loader" type="image/svg+xml" data="{{ static('images/loading/loader-white.svg') }}"></object>
|
2023-11-02 10:09:24 +01:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
2023-02-13 20:40:51 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-11-02 16:34:37 +01:00
|
|
|
{% endif %}
|
2023-11-02 10:09:24 +01:00
|
|
|
|
2023-11-02 09:36:27 +01:00
|
|
|
{% endblock %}
|